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
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
1answer
1k 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 ...
0
votes
1answer
16 views

You cannot define a correlation name 'link_attribute_qty_decimal' more than once

Have this problem for an API feed: You cannot define a correlation name 'link_attribute_qty_decimal' more than once at public_html/vendor/magento/framework/Webapi/ErrorProcessor.php:208, ...
0
votes
1answer
2k views

Magento 2: SMTP Email gives error “Could not open socket”

Using Magento 2 Version 2.1.0 on WAMP Windows 10 As continue with this question Magento 2: SMTP Email gives error "Invalid sender data" Now this is my code $storeScope = \Magento\...
6
votes
3answers
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 ...
0
votes
1answer
38 views

How detect mobile in Magento 2?

I can't find the correct code to check if my Magento 2 site is visited by Mobile. These are the two codes that I tried in the header.phtml file in my custom theme but they don't work: $userAgent = $...
7
votes
0answers
342 views

getting error “PHP Fatal error: Uncaught Zend\Uri\Exception\InvalidUriPartException”

I am using Magento ver. 2.3.2. I am getting following error in error_log after moving the site on new server (AWS Server): PHP Fatal error: Uncaught Zend\Uri\Exception\InvalidUriPartException: ...
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
0answers
37 views

Magento 2 is giving me Fatal error: Allowed memory size of 1073741824 bytes exhausted when i am trying to save product

I am getting following errros Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 73400328 bytes) in public_html/vendor/magento/zendframework1/library/Zend/Db/Statement/...
0
votes
0answers
21 views

Transport expects either a Sender or at least one From address in the Message; none provided Magento 2.2.8

After execute composer install and composer update in Magento 2.2.8...some transactional e-mail throw the message "Zend\Mail\Transport\Smtp transport expects either a Sender or at least one From ...
0
votes
1answer
16 views

Filter Sales/order collection

I am trying to get data where if my order state is complete and delivery_at is between date1 and date 2. At the same time I also want to filter when state = canceled and delivery_at is between date3 ...
0
votes
1answer
737 views

Print Magento Invoice Data To TCPDF File

I have followed the instruction in the link -> TCPDF With Magento, now I want to call the TCPDF library from Invoice.php file at app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php because I want to ...
0
votes
1answer
103 views

Magento2 write updated query using connection & Zend format

I am trying to add below SQL query in the form of Zend format using Magento connection object Can you please let me know the syntax of how to follow... update eav_attribute_set set attribute_set_name ...
1
vote
1answer
1k views

Magento 2.2.3 Internal Server Error: Read timed out after 10 seconds

I have a magento 2.2.3 shop that is throwing me an internal server error every time I try to edit or create a new product. When I click save, it loads for about 10 seconds this shows internal server ...
0
votes
1answer
837 views

“Zend_Json_Exception Decoding Failed: syntax error” on module:enabled

When I try to enable my module with bin/magento module:enabled I am getting an error in console: Zend_Json_Exception Decoding Failed: Syntax error How can I fix this? When I enabled the same ...
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 '...
1
vote
1answer
253 views

Update composer zendframework packages to laminas

On composer outdated I found several lines similar to this Package zendframework/zend-view is abandoned, you should avoid using it. Use laminas/laminas-view instead. How can I switch from ...
3
votes
1answer
428 views

Magento 2.3.3 Class 'Zend_Reflection_Class' not found

I upgraded to magento 2.3.3 but didn't noticed that they changed email classes and zend framework. I am having a custom module for editing emails in magento admin. But I am having error: ...
0
votes
0answers
49 views

An error has happened during application run. See exception log for details in magento2.3.3

I had run "setup:static-content:deploy -f en_GB" command, my website shows "An error has happened during application run. See exception log for details." i checked in my log file, CRITICAL: ...
1
vote
1answer
166 views

Fatal error: Call to undefined method Zend_CodeGenerator_Php_File

I get the following error returned when clicking Edit or Add New Customer in Admin >> Customers >> Manage Customers >> "Edit" or "Add New Customer" Fatal error: Call to undefined ...
2
votes
1answer
126 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?
0
votes
1answer
323 views

upgrade magento 2.3.2 to 2.3.3 give zendframework/zend-stdlib error

upgrade Magento 2.3.2 to 2.3.3 give zendframework/zend-stdlib error. Your requirements could not be resolved to an installable set of packages. Problem 1 - magento/product-community-edition 2....
0
votes
1answer
76 views

Magento 2 email validation error with zendframework validator

I created an observer to send emails at a particular event. I used transport builder to send an email, but I get zendframework validator errors, but the email address is OK. I was able to solve the ...
0
votes
2answers
241 views

Use Zend_Debug in Magento 2.3?

As Magento removed many Zend functions in v2.3, is there a way to use Zend_Debug::dump() by potentially manually installing the missing composer module?
1
vote
1answer
239 views

Magento 2 zend error BarcodeRenderer.php

Has anybody encountered this error before? I'm not even using temando nor is it enabled. I did try enabling it to see if that would fix it but no luck. Fatal error: Class 'Zend\Barcode\Renderer\...
0
votes
0answers
24 views

How to add Link in Invoice.php magento 2

Is there any way to add link in PDF file for invoice in magento 2 below is my code How can i give it a Link $page->setFillColor(new \Zend_Pdf_Color_Rgb(1, 0, 0)) ->drawText(__('...
1
vote
1answer
304 views

Replacement of Zend_Barcode in Magento 2.3.x

I have upgraded my Magento from Magento 2.2.7 to Magento 2.3.2 version. In my custom module, I used: \Zend_Barcode::factory() function, but as per https://devdocs.magento.com/guides/v2.3/release-...
2
votes
6answers
3k 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 ...
0
votes
0answers
95 views

Override Zend library classes in magento2

Its true that this question already exists. But thought of posting it anyway as couldnt find the solutions helpful. I am using an url to connect to an endpoint. And the url has '<','>' ...
0
votes
0answers
16 views

Magento 1.9.x installation error

I tried installation with browser as follows a. url/install.php b. but at after db setting in installation wizard, browser gives 504 Gateway error So I tried with terminal and tried following ...
1
vote
0answers
101 views

Magento 2: Use Zend_Pdf easily while making PDF file

How to make a dynamic PDF easily while sending an email with this PDF attachment using Zend_Pdf because of this type of code $page->drawText(__("Image"), $x + 60, $this->y-10, 'UTF-8'); $...
0
votes
0answers
20 views

Rewrite URL in pagination of categories Magento 1.9

I've tried so many ways to do it, but I can't find a solution. I need to change the parameters in URL when I use pagination. Examples: My url in page 2 is https://www.mysite.com.br/category/sub-...
0
votes
1answer
48 views

Shall i learn zend if i want to become magento 2 extension developer

I am a front end developer and worked on many wordpress,magento and shopify stores . But now i want to become real developer . I mean i want to prepare myself so i can develop magento 2 extensions ...
0
votes
1answer
87 views

Installing Zend_Barcode

I'm not having any luck getting Zend_Barcode to work in Magento 2. Zend_PDF is working, and I notice that it has a class in: /vendor/zendframework1/library/Zend/ but Zend_Barcode does not. I've ...
0
votes
1answer
265 views

Magento 2.2.8 Email Sending Failed because of new Zend FrameWork

I am getting this error: The input is not a valid email address. Use the basic format local-part@hostname The error is in this custom module file and Magento version is 2.2.8: <?php namespace ...
0
votes
0answers
26 views

Magento 2 custom image not working in pdf

I am trying to print a custom image in a custom pdf. This runs as a cron. Everytime I run bin/magento cron:run, it displays all the output on the terminal and crashes. Here's my code- $imagePath = '/...
0
votes
0answers
29 views

try to run code in configuration page in magento 2.3.1 I try to change memory-limit to 1024M but still face same problem

This is the error I face when I try to run any code in terminal Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 28672 bytes) in C:\xampp\htdocs\magneto\vendor\...
1
vote
1answer
220 views

What to replace deprecated Class 'Zend_Rest_Client' with in Magento 2.3?

A module I'm maintaining is not working on Magento 2.3 since Magento apparently deprecated Class 'Zend_Rest_Client' . I don't see any replacement Client listed in their documentation, so I'm a bit ...
2
votes
1answer
100 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
1answer
1k 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:...
3
votes
0answers
287 views

megeplaza smtp - Zend error

Magento 2.3.1 When I send a test mail, I get this error: An exception was raised while creating "Zend\Mail\Protocol\Smtp\Auth\Login"; no instance returned Logs: main.CRITICAL: An exception ...
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 $...
0
votes
1answer
359 views

Magento 1.9 Override zend lib xml file?

I followed this tutorial: https://www.damianculotta.com.ar/magento/bug-en-los-locales-es-en-magento-1-y-2/ which suggested to override this file: src/lib/Zend/Locale/Data/es_419.xml. I created the new ...
3
votes
2answers
4k 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
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/...
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?
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
335 views

Migration from Magento 1 to Magento 2

I have this problem,by migrating magento 1 to magento 2. What i'm doing wrong? php bin/magento migrate:data --reset vendor/magento/data-migration-tool/etc/ce-to-ce/1.9.3.1/config.xml Reset the ...
2
votes
1answer
275 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 ...