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.

53 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
278 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: ...
3
votes
0answers
253 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 ...
3
votes
0answers
222 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
1answer
88 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
337 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
0answers
629 views

Magento 1.9.3.10 undefined offset in abstract file

My logs have grown large full of entries of: Notice: Undefined offset: 1 in lib/Zend/Db/Adapter/Abstract.php on line 814 My installation of magento is rather default, in that there isn't a vast ...
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 ...
2
votes
0answers
497 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 ...
2
votes
0answers
1k views

Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir “/home/celtice1/public_html/var/cache/” is not writable' in

after i upgrade to magento 2.1.3 i see this error full Error is can someone help me to solve this issue Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir "/home/...
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
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,...
2
votes
2answers
746 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 '...
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 ...
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/...
1
vote
1answer
148 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 ...
1
vote
0answers
88 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'); $...
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 ...
1
vote
1answer
309 views

How to append a new Json element to setData with resultJsonFactory in Magento2

public function __construct( JsonFactory $resultJsonFactory ) { $this->resultJsonFactory = $resultJsonFactory; } $response = $this->resultJsonFactory->create(); $response->...
1
vote
1answer
645 views

“Unable to send mail” error message when changing user password in Magento Admin (v 2.2.1)

I have a Magento 2.2.1 Running on a Amazon Lightsail VPS (the Bitnami Magento stack). It has been working just fine, an previously I would get a "Password reset information" e-mail from the system ...
1
vote
0answers
29 views

I have installed a Plugin in Custom Theme(duplicate of RWD) but url is not loading and 500 http error has occurred

I have installed store locator (https://www.magentocommerce.com/magento-connect/google-map-store-locator.html) plugin in Magento 1.9.2.0 but the frontend is not responding. Please give the solution.
1
vote
0answers
195 views

“Font has not been set” error when printing invoices

Trying to print invoices. I get the error "Font has not been set" and it refuses to generate PDFs. This error seems to be linked to certain orders, though there is no rhyme or reason. The next ...
1
vote
0answers
147 views

Unable to install any extension on Magento 2.1.0 website

I have a site running on Magento 2.1.0. The site was up and running for a few weeks with no issues, we were able to install a few extensions with no problems. Suddenly, we are unable to install any ...
1
vote
0answers
453 views

Composer autoload doesn't work

This is a follow up question from this question. I want to override a Zend class using composer autoload. It used to work, but not anymore. This is content of my composer.json file: { "name": "...
1
vote
0answers
107 views

How to create REST API in magento after configuring REST Roles , OAuth Consumers and Users with that role?

I am not that much aware of API. I have created REST Roles and OAuth Consumers. After that i have created New user and assign that role to that user. I know that I need to create one php or xml file. ...
1
vote
2answers
379 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 ...
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->...
0
votes
0answers
20 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
11 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
0answers
47 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: ...
0
votes
0answers
20 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(__('...
0
votes
1answer
63 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
0answers
82 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 ...
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
42 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
72 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
0answers
19 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
27 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\...
0
votes
1answer
239 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
1answer
585 views

How to override vendor/magento/framework/DB/Adapter/Pdo/Mysql.php and vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php?

I created a custom module and to try to override vendor/magento/framework/DB/Adapter/Pdo/Mysql.php and vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php but <preference for="...
0
votes
0answers
382 views

Override magento 2 Framework classes

How can I override the following file: vendor/magento/framework/Locale/Format.php
0
votes
1answer
76 views

Memory Exhaust while saving order data in Observer

I add a custom attribute from my module to sales order like this: $attribute = array( 'type' => 'int', 'backend_type' => 'int', 'is_user_defined' => true, 'label' ...
0
votes
1answer
704 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
60 views

Magento2 how to make query in the right method?

I have created a sql query but i don't know how to make this as in the Magento2 format any help $sql = "`select product_id,customer_Id,bid_status,MAX(bid_Amount) max_bid FROM mbid_history as d where ...
0
votes
0answers
47 views

Email are not sending from my magento store

I am using following code to send email from my magento store but i am not able to sent any email <?php echo "start mail"; echo "<br>"; ini_set('memory_limit', '500M'); ini_set('...
0
votes
1answer
228 views

Delivery date and time based on city

I am using Magento ver. 1.9.2.4 with SM Market Template, we have delivery services to few cities, I want to have the city as dropdown list during checkout and to assign the delivery date and time ...
0
votes
1answer
832 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 ...
0
votes
0answers
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\...
0
votes
1answer
114 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....
0
votes
2answers
615 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: ...