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
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():...
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 ...
18
votes
1answer
4k views

Zend Framework Versions

What are the mapping of CE/PE/EE versions to corresponding Zend versions? If possible I need a list going back before Magento 1.1.
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('...
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 ...
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 ...
14
votes
2answers
2k views

How is magento 2 better than magento 1?

I am just curious to know about magento 2 performance and how it is better than magento 1.x versions. Recently I started learning magento 2 and found that it is a whole new set of theory based on pure ...
9
votes
1answer
4k views

override a zend library

i'm trying to override a zend library (Zend_Pdf_Page) and it doesn't seem to be working. i'm putting it in app/code/local/Zend/Zend_Pdf_Page.php, but the parent class is being used instead. are there ...
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 (...
7
votes
4answers
633 views

ZEND FRAMEWORK 1 SECURITY - Email Settings?

I have a question on the new Zend security vulnerability announced by Magento recently regarding the email settings in System-> Configuration-> Advanced-> System-> Mail Sending Settings-> Set Return-...
6
votes
2answers
2k views

How to override a Zend class?

I want to override a Zend class (Zend_Date). In Magento 1, I used to put Date.php in app/code/community/Zend and Magento itself used to do the rest. But now, there is no such directory. How can I ...
6
votes
3answers
418 views

Magento Module creation gives error

I have successfully created a new module in app/code/CompanyName_ModuleName and created etc/module.xml and after that run following command from my terminal in my sudo php bin/magento setup:upgrade my ...
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?
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 ...
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 ...
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 ...
5
votes
2answers
304 views

Should I be worried about the latest Zend-Mail RCE Vulnerability similar to the PHP-Mailer/Swift Mailer Vulnerability if I use Magento?

From the recently disclosed Zend-mail remote code execution vulnerability: Affected Zend Framework versions: Zend Framework < 2.4.11 Remote Code Execution (CVE-2016-10034) zend-mail < 2.4....
5
votes
2answers
5k 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 ...
5
votes
2answers
274 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 ...
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 ...
4
votes
3answers
690 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
3
votes
1answer
333 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', ...
3
votes
3answers
1k views

Provide properties to views in Magento

In Zend Framework we provide properties to layouts which are then consumed in the view. An example of this would be: $this->layout = new Zend_Layout(); $this->layout->username = 'John'; $...
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://...
3
votes
1answer
55 views

Upgraded Zend causing problems?

I have discovered in a Magento CE 1.7.0.2 installation that I inherited that Zend apparently was upgraded at some point over the past year. There have been a number of odd issues that have haunted me ...
3
votes
2answers
587 views

Blank Page When Installing Magento Open Source 2.2.2

I am getting the following error when trying to run the initial php setup script, please advise $ php bin/magento setup:install Fatal error: Declaration of Zend\Mvc\Controller\PluginManager::get($...
3
votes
2answers
3k views

Installation Validate class not found from basename 'StringLength'

I have an interesting phenomenon: I tried to install Magento on http://www.fortrabbit.com/ but I get the following error. I'm sure on my first try it didn't happen, but the table creation broke at ...
2
votes
6answers
2k views

Magento 2.1.9 upgrade to 2.2.0 - Error on setup:upgrade with Magento_Sales table

Upgrading magento from 2.1.9 to 2.2.0 and during the automatic bin/magento setup:upgrade process it runs all upgrades fine until it reaches the magento_sales table where it produces this error. There ...
2
votes
2answers
3k views

Uploading multiple files in custom module does not work in Magento 2

I am new to magento 2. I have been overriding a module in which I am trying to post images through a form. Here is my template file code: <form action="somecontroller.." enctype="multipart/...
2
votes
2answers
756 views

Magento 1.9 Custom Module Form $mail = new Zend_Mail(); include more $params

I created a simple custom module and have a problem with $parmas which I can't figure out for hours now. Here is the IndexController.php responsible for it: public function sendemailAction() ...
2
votes
1answer
861 views

Can't find function iconv_strpos after server migration

I just changed my magento 1.9 installation to a dedicated server. I uploaded the file system and the database to the new server. When I try to access my website, the following line appears in my ...
2
votes
1answer
2k views

How to add custom text fields in Magento 2 admin module page

I have created a new admin module page in magento 2 using this link http://devdocs.magento.com/guides/v2.0/ext-best-practices/extension-coding/example-module-adminpage.html. Now I want to add two text ...
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 ...
2
votes
1answer
2k views

How to update multiple rows of a table in a single query?

I need to update the qty of all products (around 15.000 items) in a cycle, but it takes a very long time. How can I build a SQL script within the loop to run it in a single execution?. I have this ...
2
votes
1answer
174 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
1answer
72 views

Learn zend, magento modules and magento API

I can already use magento and I have some php basics. Now I would like to deepen zend, magento modules and magento API. You could link me all the best resources to learn this?
2
votes
1answer
782 views

magento2 registration php

What is the difference between a THEME And Module in Magento 2 ? Theme Registration.php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar:...
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 $...
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/...
2
votes
1answer
233 views

Magento 2 Invoice PDF logo looks blurred

I have uploaded Invoice logo with size 200X50 as recommended. However when the invoice is downloaded the image looks blurred and takes the dimensions about 309X79. Any idea why is it taking this size? ...
2
votes
1answer
247 views

Currency 'USD' not found when trying to access admin

I have never encountered this error before. I did a quick search for it. I found another thread but it seemed to vary a bit from my problem. Here is my stack trace: There has been an error ...
2
votes
1answer
1k views

How to use Union query in a Magento 2 collection

I am working on Magento 2 grid UI component. For that I am generating grid using multiple table which does not have any relation( so I cant join). I am using union to combine the tables. But while ...
2
votes
1answer
2k views

Magento 2, email validation problem with new TLD (.shop)

I have a .shop domain and adding email address in the backend (user info) i get the following errors: ... is not a valid hostname for email address ... appears to be a DNS hostname but cannot match ...
2
votes
2answers
580 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 ...
2
votes
1answer
290 views

comparing form data with database

I am trying to work out what would be the fastest way to compare user data which has been entered into a form with user data that is already stored in the database. My plan was to pull all details of ...
2
votes
1answer
42 views

Magento 2 order confirmation email not sent

I'm working on a clients' store, and face a problem with no order confirmations being sent. The following error is logged in system.log: [2019-06-11 11:53:04] main.ERROR: Invalid address format [] []...
2
votes
0answers
150 views

Magento 2: PDF set page margins for Invoice

I added a footer to my invoices, this works fine. private function _insertFooter($page) { $this->_setFontRegular($page, 8); $this->y = 100; $page->drawLine(25, $this->y, 570,...
2
votes
0answers
299 views

Magento 2 override associated product price (configurable and it's child)

I have all configurable products on my website and I want to add the extra charges (after some calculation and conditions) to product price by overriding method or anything else which follow the ...
2
votes
1answer
932 views

Getting a PHP Fatal Error: Uncaught Error: Class 'Zend_Cache' not found

Something went wrong when I was using the Component Manager to install a module, and now I cannot see my front or back ends. When I try to do anything through the CLI I get this message: PHP Fatal ...
2
votes
0answers
473 views

Magento 2 undefind function Magento\Framework\Stdlib\iconv_strlen() in vendor/magento/framework/Stdlib/StringUtils.php?

I am getting the below error when I upload my project to live server.Everything is working perfect in my local system.But The below error only getting on server Fatal error: Call to undefined ...