The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

55 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
44 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
157 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
303 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
957 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
475 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
1k 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
672 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
434 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
0answers
38 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
0answers
91 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 ...
1
vote
1answer
976 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
247 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
558 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
504 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 ...
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
150 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
143 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
402 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
374 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
978 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
27 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
6 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
0answers
13 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
27 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
14 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
12 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
31 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
13 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
11 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
21 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
144 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
18 views

Magento2 Customer Session Issues

I am getting below error message in exception.log SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction, query was: UPDATE `customer_visitor` SET `customer_id` = ...
0
votes
0answers
11 views

Can I safely add the Zend_rest library back into 2.3?

I have an extension that requires the use of the Zend_Rest library. With 2.3 it has now been removed. Can I safely add it back in? If so what are the steps?
0
votes
0answers
82 views

Magento suggest installing frameworks

When I install Magento community edition in windows 10 some of it frameworks suggest me to install other resources. Is it okay to leave it like this or I have to install these frame works. If i have ...
0
votes
0answers
85 views

How to solve intermittent exceptions in the Zend Framework's SessionHandler?

this is my first question at this forum! Circumstances are M2 2.2.7 on CentOS 7 with PHP 7.1 + all 3 types of caches managed by Redis 3.2.12 (on instance per type of cache). MySQL 5.latest and a ...
0
votes
0answers
11 views

Magento 2 Cannot change the amount in the cart

When I try to change order more than one item per product, it is not possible. Also I can not change the amount in the cart. I checked the stock of the products, there are no configurations that ...
0
votes
0answers
40 views

Cannot login to Admin

Cannot login to the admin panel. This is the latest error report. The frontend works fine. a:5:{i:0;s:122:"Cannot send headers; headers already sent in /home/xxx/public_html/app/code/core/Mage/Admin/...
0
votes
0answers
38 views

I cannot run the developer mode command line

Summary of the issue I cannot run the developer mode after I've done the steps below to upgrade to Magento 2.3. The upgrade process ended up with: Service Temporarily Unavailable The server is ...
0
votes
1answer
490 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
345 views

Override magento 2 Framework classes

How can I override the following file: vendor/magento/framework/Locale/Format.php
0
votes
1answer
53 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
536 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
57 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
46 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
169 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
786 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\...