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
0
votes
3answers
839 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
969 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
40 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
206 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
571 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
1k 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
174 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
171 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
243 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
3k 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
417 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
623 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
1k 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
546 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
10k 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
426 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
332 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
1k 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
25 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
344 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
344 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
1k 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
229 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
1k 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
302 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
753 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
272 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 ...
21
votes
4answers
17k views

Why aren't Magento developers using Zend Framework 2 for Magento 2?

Magento will continue to mostly use the original Zend Framework (version 1) for Magento 2 (source: Magento 2 and Zend Framework 2 ) Seeing as how Magento 2 will not be backwards compatible with ...
3
votes
1answer
9k views

SOAP API fails with “couldn't load from…”, “failed to load external entity…” [duplicate]

When calling upon the Magento SOAP API I get the well known SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://{domain}/index.php/api/v2_soap/index/?wsdl=1' : failed to load external entity "http://...
43
votes
9answers
43k views

Magento 1.9, php 5.6 - Use of iconv.internal_encoding is deprecated

Have the same with Magento CE 1.8 and 1.9 After update php from 5.5.16 to 5.6.0 on my VPS I got this 2 errors in [magento]/var/log/system.log: ERR (3): Deprecated functionality: iconv_set_encoding():...
5
votes
3answers
4k views

Magento 2 and Zend Framework 2

Since Magento is planning on using Zend Framework 2, does that mean that all the current extensions that utilize ZF1 are going to break? From what I know about ZF2 and ZF1 is that they are very ...
0
votes
1answer
184 views

saving new product problem in magento 1.8.1 [closed]

i get this error when im saving a new product: a:5:{i:0;s:139:"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '484-1' for key '...
4
votes
3answers
682 views

Is Magento planning on implementing Zend Framework 2?

Is Magento considering updating to ZF2? I understand ZF2 has been around for a few years. Why isn't it already using it? Re: Zend Framework Versions
1
vote
1answer
1k views

Magento CE 1.9.0.1 Array to string conversion Zend DB Adapter Pdo Abstract.php

I get this Error in Magento... /var/log/system.log since a few weeks, - CE 1.9.0.1 with Firegento, german localisation Mage_Setup ERR (3): Notice: Array to string conversion in ...\htdocs\magento\...
1
vote
2answers
1k views

Zend file upload not working…

I try to upload a file using Zend. I made a standard form with a submit button which calls a controller. In this controller, I have : <?php class Mine_Custoptiontypev5_UpfileController extends ...
1
vote
1answer
2k views

PDF Invoice - content forcing new page

I customized my pdf invoice. I use graphics for header (logo and company address) and footer (company bank account information, contacts etc.). So my layout on the pdf looks something like this: As ...
1
vote
3answers
4k views

Fatal error: Class 'Zend_Cache' not found /app/code/core/Mage/Core/Model/Cache.php

Does anyone know why this kind of messages appear? It seems like my Magento installation does not fully load all Zend classes, although they are there on a proper place with proper file permissions. ...
1
vote
1answer
742 views

How to populate one column in a table from another table column [Magento OOP way]

I am new to magento. I have to perform a db task in magento upgrade script which should be done using magento OOP db way. But i cannot figure it out how to do it. I can do it in plain sql query but ...
1
vote
0answers
25 views

Zend compatible error in magento admin [duplicate]

I am getting the following error when i was printing the shipment Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::...
0
votes
2answers
5k views

Can't generate PDF invoices or packing slips in Magento

I have a Magento issue. I have moved everything to a different server, and all seems to work fine - but I can not get the "print PDF invoice" or "Packingslip" option in the order section to work. It ...
15
votes
2answers
2k views

Connecting MongoDB ODM to Magento

I am trying to connect Mongo Doctrine ODM to Magento. I have successfully connected zend with mongodb. and I dont know how to Connect the both. I have placed Mongodb odm in "lib" folder of magento ...