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
1 answer
32 views

\Zend\Stdlib & Laminas - \Zend\Stdlib\ParametersFactory - Failing Module

After (unwisely it seems) doing composer update on our Magento 2.4.6p1 (php 8.2), some recent updates seem to have caused problems with Zend and Laminas. Most of which were easily fixed by replacing ...
DomiGuy's user avatar
  • 11
0 votes
2 answers
60 views

Zend Class issue Upgrade From Magento 2.4.3 to 2.4.6

We are Upgrading Magento Version from 2.4.3 to 2.4.6. Area configuration aggregation... 5/9 [===============>------------] 55% 34 secs 498.0 MiB In ClassReader.php line 57: Impossible to process ...
Kushal Dani's user avatar
  • 2,104
0 votes
1 answer
60 views

Zend Db Deprecated?

We're just updating our development site from 2.4.6-p3 to 2.4.6-p4. One of our modules seems to prevent a reindex from being completed. The error is: Error: Class "Zend\Db\Sql\Select" not ...
Chris Oliver's user avatar
0 votes
2 answers
457 views

Zend framework is deprecated in magento 2.4.6

I have just upgraded my Magento version from 2.4.0 to 2.4.6 and it is giving this error while opening admin. please suggest any solution 1 exception(s): Exception #0 (Exception): User Deprecated ...
Tisha Jhanwar's user avatar
0 votes
0 answers
46 views

Magento2 How to reduce file size of invoice pdf (need to support Chinese and Korean characters)?

Because Magento OOTB can not support Chinese and Korean characters, so I use the external font file (this font https://fonts.google.com/noto/specimen/Noto+Serif+HK?noto.query=Noto+Serif+HK) to do this....
Zoe's user avatar
  • 51
3 votes
7 answers
3k views

Which class replace for "Zend_Validate" in Magento 2.4.6?

I have one function that uses the "Zend_Validate" Now I upgraded my Magento version to 2.4.6 and I got an error like.. https://prnt.sc/z3i-VQY7VFvp with class replace my code is if (!\...
Jay Parmar's user avatar
0 votes
1 answer
1k views

I'm getting this error: Class "Zend_Filter_LocalizedToNormalized" not found

Not sure if it has to do with php 8.2 specifically or just php 8. My exception log is saying that it's not found here in this file but below is the code from line(s) 190 - 197. Checkout/Controller/...
Singleton's user avatar
3 votes
1 answer
844 views

Magento 2.4.6 update - extension problem - zendframework replaced with laminas

l just updated Magento to version 2.4.6. Everything works fine but i have problem with one extension, it is very important to me and there is no substitute for it. Problem is that zendframework is ...
Raul Baričević's user avatar
0 votes
1 answer
33 views

Need Solution For Solving The Error

When I opening my site, I'm seeing an error. Screenshot of the error is attached. Anybody can help please?
Sufyan Ahmed's user avatar
1 vote
1 answer
74 views

Media Temple migrated to new server and website crashed

I am not a web developer. Looking for some insight. Media Temple recently migrated the domain to a new server and my website crashed. They have not provided any details of why it happened or what ...
Kaitlin 's user avatar
2 votes
0 answers
66 views

How I can Merge two pdf pages into one page using Zendframework

I'm trying to merge two pdf pages one is packing slips and another one is shipment labels, I can merge the two pdf by creating another page but I want to merge the two pages into a single page and 2nd ...
shoaib sheikh's user avatar
0 votes
1 answer
168 views

Zend Pdf round corners in rectangle section

I wrote the below code to show rectangle in pdf file $page->setFillColor(new \Zend_Pdf_Color_GrayScale(0.92)); $page->setLineColor(new \Zend_Pdf_Color_GrayScale(0.92)); $...
Niraj Patel's user avatar
0 votes
1 answer
419 views

Any Magento Class or Imnterface Alternative to Zend_Validate_Regex

I am Refactoring some code while doing I found Zend_Validate_Regex directly use in the code $validator = new \Zend_Validate_Regex(['pattern' => '/^[a-z][a-z_0-9]{0,29}[a-z0-9]$/']); I want ...
Waqar Ali's user avatar
  • 2,319
0 votes
1 answer
305 views

ZEND PDF Order Creation on new page

I have used this code to make a Custom PDF to make purchase orders also with some custom attributes but the base code is the same: https://webkul.com/blog/generate-pdf-programmatically-magento2/ This ...
don's user avatar
  • 1
2 votes
4 answers
6k views

Magento 2.4.3: Zend removed?

Has Zend been finally depreciated? I'm having issues on Catalog page using an Amasty plugin: Error: Class 'Zend\Serializer\Serializer' not found in /var/www/php/vendor/amasty/shopby-seo/Helper/Data....
Kalvin Klien's user avatar
1 vote
1 answer
2k views

Zend_Mail function not working in magento 2

i want send mail menually. Is there any othere option to send mail in magento 2. $html_body = 'Test Mail'; $from = "[email protected]"; $nameFrom = "From Name"; $to = "...
jykmhar123's user avatar
0 votes
1 answer
341 views

Magento 2: How can I overwrite Zend_Validate_Hostname class

How can I overwrite zendframework1/library/Zend/validate/Zend_Validate_Hostname class? I need to overwrite to add hostnames in $_validTlds The reason is the following error: "Email" no es ...
chdzma's user avatar
  • 952
1 vote
0 answers
91 views

Magento 2.1 - How to resolve PHP Fatal error: Class 'Zend_Captcha_Image' not found issue?

I'm using Magento 2.1.I just updated my composer and after that When I run setup:upgrade it's showing me error PHP Fatal error: Class 'Zend_Captcha_Image' not found in vendor/magento/module-captcha/...
AjayKr's user avatar
  • 145
0 votes
1 answer
198 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, ...
Kasper Elund's user avatar
0 votes
1 answer
1k 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 = $...
Jackom's user avatar
  • 473
0 votes
1 answer
1k 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/...
xtremprovider's user avatar
0 votes
1 answer
56 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 ...
arqam's user avatar
  • 149
0 votes
1 answer
2k 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 ...
Nagaraju Kasa's user avatar
1 vote
1 answer
1k 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 ...
Alfredo Lanzetta's user avatar
0 votes
0 answers
178 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: ...
Priya's user avatar
  • 589
7 votes
1 answer
882 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: ...
Lalit Kaushik's user avatar
2 votes
1 answer
412 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 ...
Mark Kubala's user avatar
0 votes
1 answer
611 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....
ravi chandra's user avatar
4 votes
1 answer
2k 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: ...
G. G.'s user avatar
  • 1,132
1 vote
1 answer
1k 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-...
Mohit Kumar Arora's user avatar
0 votes
1 answer
387 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 ...
Gustavo Ulyssea's user avatar
0 votes
0 answers
404 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 '<','>' ...
Kingshuk Deb's user avatar
  • 1,204
0 votes
0 answers
82 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 ...
Inzamam Waikar's user avatar
1 vote
0 answers
420 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'); $...
sumeet bajaj's user avatar
  • 1,286
0 votes
1 answer
125 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 ...
kuldeep's user avatar
  • 31
0 votes
1 answer
529 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 ...
Geat's user avatar
  • 834
1 vote
1 answer
595 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\...
cntrl esc --'s user avatar
0 votes
2 answers
545 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?
vladPavlov's user avatar
1 vote
1 answer
1k 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 ...
M. Sonah's user avatar
  • 136
2 votes
1 answer
223 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 [] []...
Digitaq's user avatar
  • 151
0 votes
1 answer
771 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 ...
mahdi danash's user avatar
3 votes
0 answers
835 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 ...
Marcin's user avatar
  • 31
2 votes
1 answer
202 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?
Mastafis's user avatar
  • 187
0 votes
1 answer
695 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 ...
glafche's user avatar
  • 487
0 votes
3 answers
2k views

RuntimeException: Can't create directory

my website https://roofmegastore.co.uk/ is coming up with this error. 1 exception(s): Exception #0 (Magento\Framework\Exception\FileSystemException): Directory "/var/www/html/magento/pub/static/...
Moddy's user avatar
  • 15
2 votes
2 answers
909 views

How to enable LOAD DATA LOCAL INFILE in Magento 1.9

So far I found this closed question and solutions for Magento 2, but I'm hoping there's a solution for Magento 1 as well. This question should not be closed like the other one because it IS specific ...
ctrl-z pls's user avatar
3 votes
0 answers
612 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,...
DaFunkyAlex's user avatar
0 votes
1 answer
2k views

Magento 2 bind param to query in order by clause

I'm trying to bind params to order by with expressions clause in Magento 2, my insecure code looks like: $order = new \Zend_Db_Expr("POW((main_table.long - $this->_coordinates['lat']), 2) + POW((...
Arthur lauck do nascimento's user avatar
-1 votes
1 answer
552 views

Change tax in magento 2.2.x

I use magento 2.2.3 with few thousand products. How to update tax id for all my products with a sql query? Our products have no product tax. I just wanna add product tax to all products (19%).
Tommy's user avatar
  • 39
0 votes
1 answer
542 views

Invoice PDF - Encoding Issue

I am trying to print invoices with special characters (for example for a polish shop). By default these just get completely cut out. If I (for testing) enter only special characters as the customer's ...
Chaz's user avatar
  • 269