Questions tagged [zend-framework]

Zend Framework is an open source, object-oriented web application framework implemented in PHP 5 and licensed under the New BSD License. Zend Framework applications can run on any PHP stack that fulfills the technical requirements.

Filter by
Sorted by
Tagged with
1
vote
2answers
81 views

->order('v.entity_id IS NULL') gets translated incorrectly

Zend_Db_Select::order is translating ->order('v.entity_id IS NULL') incorrectly to `v`.`entity_id IS NULL` ASC. It thinks "entity_id NULL" is the column name. Any idea so I get the following? ...
5
votes
3answers
4k views

How to use zend_debug:dump in Magento2

Do we need to include the class in the constructor? In Magento 1, we simply use zend_debug::dump()->debug to debug object, how about for Magento 2?
8
votes
2answers
2k views

what are the zend components using by magento2?

Magento2 now using zend framewok 1 ,zend framework 2 ,symfony etc. I want to know what are the components taken from zend framewok 1 and components taken from zend framewok 2. For example: Zend_Db (...
0
votes
2answers
2k views

My magento 2 is not working after install japanese locale file

I have a trouble with my Magento 2 - 500 page error in front and backend. Error log: 2016/05/29 21:28:00 [error] 2681#2681: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ...
0
votes
2answers
74 views

catalog_product_validation_before event

How does this work? I cannot seem to find anything on it. I'm looking for a way to validate a field before before_save. If condition are good, then continue, otherwise throw error. This would happen ...
2
votes
1answer
2k views

How to draw image from image source in Zendpdf in magento

I am trying to create a packing slip for delhivery. An APi from delhivery send the details of packing slip including the Barcode source. $barcodeImage = data:image/png;base64,...
0
votes
1answer
116 views

Zend_Log_Formatter_Simple undefined Magento 1.7

I am getting this error when trying to place order through credit card in magento 1.7 CE ( We are using HHVM ) error Fatal error: Class undefined: Zend_Log_Formatter_Simple in ./app/Mage....
4
votes
3answers
1k views

Magento 2: How to use Zend Date

In Magento 1 we are using zend_date in a following manner new Zend_Date(date, 'MM-dd-Y'); or new Zend_Date(date('M-01-Y', strtotime("+1 months", strtotime(date("Y-m-d"))))); But how can I use ...
1
vote
2answers
380 views

updated rom 1.9.2.1 to 1.9.2.4 now Getting Fatal Error on my magento site Class 'Zend_Cache_Backend_File' not found

updated rom 1.9.2.1 to 1.9.2.4 now Getting Fatal Error on my magento site Class 'Zend_Cache_Backend_File' not found also had numerous other files missing but cannot solve the Zend Cache Backend File ...
0
votes
2answers
616 views

Magento: Special Product with price input field

I have a lot of standard products in my magento. Now i need a special kind of products. Everythink is the same like a stanard product, only hidden price. Every special product have this formular: ...
2
votes
2answers
755 views

Magento 1.9.2.1 Stock availbility options not working

At admin backend, save product was giving SQL errors like : SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1161-1' for key '...
5
votes
2answers
6k views

How to use Magento 2’s built in Vagrant box?

With a clean checkout of Magento 2.0 on branch 2.0, I’ve run composer install. Included in the dependencies is a Vagrant configuration file in vendor/magento/zendframework1. While it seems like this ...
2
votes
1answer
6k views

How to attach Invoice PDF in invoice email

I want to attach invoice pdf to the invoice mail, I followed the link and override the email functions. First Override the app/code/Mage/core/Model/Email/Template/Mailer.php like, Adding protected $...
1
vote
1answer
2k views

Zend Select “where IN (?)” filter returning results that are NOT IN

I am working on a segmented version of Magento's Invoiced Totals report. Currently without my additional filters the report reflects what Magento's Core report shows, good. I am trying to add a ...
0
votes
3answers
1k views

How To Fetch And Display Last 4 Table Rows?

The following code currently outputs the first row matching the criteria is_read != 1', 'is_remove != 1'. I need to modify this code to output the last 4 table rows that matches said criteria. I tried ...
1
vote
0answers
1k views

Zend pdf text not set on rectangle

I tried below code in my TestController.php but I do not understand how to put text on rectangle $pdf = new Zend_Pdf(); $page = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4); // $this->...
-1
votes
1answer
43 views

How much configurations we can do with Magento 1.9 , How it will be differ than cakephp? [closed]

I am newbie to Magento? I want to know how CakePHP and Magento differs. I have found most of the common folder structure. What is the relation between Zend and Magento? Kindly ignore if question ...
0
votes
1answer
231 views

Multiple Items but want one SKU for all Item which fall under same category

I am newbie to Magento. I have multiple items (say it1,it2,it3 ... ) from same item category (say itcat1 ) in my store. How can I set same stock for all items or some item from same category? One ...
1
vote
2answers
2k views

simple zend pdf file not generate in magento

I tried below simple code in my TestController.php code but not generate pdf file. When I call testAction method of TestController.php it displays blank on page and no error on page and as well as not ...
2
votes
2answers
615 views

Filter collection with dropdown attribute

I want to hide products on frontend that have attribute brand = branda and brandb. Attributes are dropdown and flat tables are enabled. Reason is i am importing alot of products and some of those ...
1
vote
2answers
2k views

Where is the special_price/special_to_date/special_from_date held at?

I have a query for the catalog/product model and that has an associated properties of special price field, I can access them normally by using the model, however when using getSelect() it will only ...
2
votes
4answers
3k views

Strpos - empty needle in Zend HTTP.php

Since upgrading our Magento 1.8.0.0 to 1.9.2.1 I have noticed that we're getting hundreds of errors in the log file: 2015-11-11T16:20:01+00:00 ERR (3): Warning: strpos(): Empty needle in home/...
0
votes
1answer
180 views

how to check particular input contain dot (.) or not in magento2?

I want to use magento2 framework validator .I'm not able to identify which function need to use.i think for this i have to use Zend_Validate class. In plain php i can use following way. $...
2
votes
1answer
203 views

Removing unused Zend libraries from Magento

I'm overriding a Magento 1.9 clean directory with a 5 years customized store. That store was patched and updated many times since Magento 1.3. Database was manually fixed and all store works as ...
2
votes
0answers
1k views

Magento Send Transaction Email Template to PDF as Attachment

I can successfully send email with Transaction Email Template but i am not able to convert Transaction Email Template into pdf and send it as attachment in the same email. Any one can help to ...
0
votes
1answer
244 views

Magento change sort order of selective categories in Admin

I am trying to change sort order of sub-categories from the array of category id's following is my code. $catOrder = array(47,54,66,88,89); $position = 1; foreach ($catOrder as $catId) { $...
1
vote
2answers
4k views

SMTP Error Zend Mail Magento

I am trying to send emails using SMTP but emails are not sending using SMTP i can see in the logs i get this error exception 'Zend_Mail_Protocol_Exception' with message 'Recipient syntax error in /...
1
vote
1answer
437 views

Magento order tracking error. “parameter $date must be set, null is not allowed”

Using Magento 1.9.1.0. When I open the order shipping tracking I get this error: There has been an error processing your request parameter $date must be set, null is not allowed The full output is ...
1
vote
1answer
714 views

Zend_Db_Select not found

Magento site is not loading. It's error log is showing PHP Fatal error: Class 'Zend_Db_Select' not found in select.php
5
votes
4answers
2k views

Alternative to file_exists() function [duplicate]

When trying to boost code quality, I frequently encounter errors like "The use of function file_exists() is forbidden" when trying to use PHP file functions. This for instance happens with the Magento ...
1
vote
1answer
586 views

Magento 1.9.2.1 unable to print invoice PDF

To give a bit of background, I've upgraded my Magento from 1.4.1 to 1.9.1 then to 1.9.2.1. Since then I've applied all of the patches needed including the patch that address's php 5.4. I've checked ...
1
vote
2answers
1k views

Magento contact form not receiving emails

I am having difficulty making my custom email form receive emails. My success message does not show when the submit button is clicked. I also am getting a Confirm Form Resubmission error when ...
1
vote
1answer
1k views

Upgrade from 1.9.1 to 1.9.2 Error [duplicate]

I have now tried to perform an update to 1.9.2, which did not work. I tried to install the update via Magento Connect, then the side seemingly offline (Error 503) but the maintenance.flag file does ...
5
votes
2answers
11k views

unable to get customer data from session in custom module?

I am developing custom module which needs to use customer data from session. Here I am having some problem with session. I am unable to get any customer data in my custom module from session even if ...
2
votes
0answers
444 views

Magento checkout page reorder checkout step

I have install third party extension of Ipragmatech. I want to make the step defined by this extension as default checkout step or 1st checkout step i have made changes in Ipragmatech/Checkoutstep/...
3
votes
1answer
347 views

Check which filters have been applied to a collection

Is it possible to check which filters have been applied to a given collection. For example: $collection = Mage::getModel('sales/order')->getCollection(); $collection->addFieldToFilter('state', ...
15
votes
1answer
2k views

SQL injections vulnerabilities when using SQL models of the Zend Framework

When joining tables, I use SQL models of the Zend Framework. As example I modified my actual code, but I think you will get the point: $this->getSelect()->join( array('...
1
vote
2answers
2k views

How to get a store email address in php

I made a custom module wich sends a email now i want to edit the module so that it automatically uses one of the store email adresses i saw something like Mage::app()->getStore()-> but i dont ...
2
votes
2answers
3k views

Send email attachment with zend [SOLVED]

I wrote a custom module which is using zend to send the information of a form to a email address. Now i have a file upload in the form and this file (a image) needs to be send as an attachment of the ...
1
vote
1answer
26 views

does @return cast the return type?

* @return Mage_Catalog_Model_Resource_Category_Flat */ protected function _loadNodes($parentNode = null, $recursionLevel = 0, $storeId = 0, $onlyActive = true){ .... $nodes = array(); ...
1
vote
1answer
383 views

Error creating Credit Memo PDF

I am using a custom invoice and order printout, most my clients want the classical "romainan communist invoice" look. It works fine for generating the invoice and order printouts, but when I try to ...
1
vote
1answer
384 views

Website Down ::> Accidentally dropped visitor_log and visitor_log_info tables in Database Admin

Getting this error in the logs: 2015-04-13T06:22:52+00:00 ERR (3): Warning: PDO::__construct() [pdo.--construct]: [2002] Connection refused (trying to connect via tcp://mysqlv112:3306) in /data/14/...
1
vote
2answers
2k views

fetchCol on collection returning same values

I'm attempting to retrieve the entire column of both kit_sku and related_sku. However, it doesn't seem to parse correctly. Both $componentSkus and $componentRequiredQuantity are returning identical ...
-1
votes
2answers
233 views

shorthand array declaration causing error [closed]

This causes no error: $orders = array('position' => 'Position', 'name' => 'Name', 'price' => 'Price', 'sort_parent' => 'Featured', 'sort_child' => 'Product Group'); This does: ...
15
votes
2answers
2k views

PDO exception while executing cron: newsletter queue send fails (Unknown column 'main_table.data' in 'field list')

the cron job fails when processing the newsletter queue. I debugged the PDO calls and it seems like Magento is mixing up fields here. I have no clue where Magento (or Zend PDO) get the fields to ...
1
vote
1answer
2k views

Magento/Zend_Db Order By Expression

Take this code for example: $collection->getSelect()->order(array('status = 1 DESC', 'test ASC')); Magento/Zend_Db turns this into the following: ORDER BY `status = 1` DESC, `test` ASC You ...
1
vote
0answers
323 views

Product Attribute Reindexing Error: Zend Problem [closed]

When attempting to run a reindex on the Product Attributes section of Magento, I get the message "There was a problem with the reindexing process." I've managed to get an error log out of the ...
0
votes
2answers
807 views

Error in Zend validator: “Internal Error: DNS validation failed”

I am having the following problem with my magento install (version 1.3.2.3): When someone tries to check out with an @bluewin.ch email address the following error is produced: URL: https://www....
1
vote
1answer
2k views

Magento how to forced change order status to processing after creating shipment?

How to forced change order status to processing after creating shipment ? On the magento default the order status always change to complete when shipment is created. Here is the step by step scenario: ...
5
votes
2answers
279 views

Why are some Zend classes in the core codepool?

In app/code/core there is a folder Zend that contains several classes that are slightly different from the ones in Zend. I understand the fact that based on how the Magento autoloader works, these ...