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
1answer
106 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
13 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
7 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
19 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
37 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
882 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 ...
2
votes
2answers
654 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
44 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
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 [] []...
0
votes
1answer
762 views

“Zend_Json_Exeption 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_Exeption Decoding Failed: Syntax error How can I fix this? When I enabled the same ...
2
votes
1answer
716 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
911 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
0answers
61 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 ...
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` = ...
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,...
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?
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 ...
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
144 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 ...
2
votes
1answer
68 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
0answers
60 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
66 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 ...
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
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?
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 ...
1
vote
1answer
344 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/...
0
votes
2answers
167 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 ...
0
votes
0answers
39 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/...
2
votes
1answer
243 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 ...
1
vote
2answers
2k views

How to get a store email address in php

I made a custom module wich sends a email now i want to edit the module so that it automatically uses one of the store email adresses i saw something like Mage::app()->getStore()-> but i dont ...
0
votes
0answers
37 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
3answers
439 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/...
0
votes
1answer
457 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
45 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
252 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 ...
1
vote
0answers
448 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
0answers
426 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
2k views

PDF Invoice - content forcing new page

I customized my pdf invoice. I use graphics for header (logo and company address) and footer (company bank account information, contacts etc.). So my layout on the pdf looks something like this: As ...
0
votes
1answer
235 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((...
2
votes
0answers
145 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,...
-1
votes
1answer
237 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%).
0
votes
1answer
161 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 ...
0
votes
1answer
20 views

Possible ways of installing Magento other than localhost server

Currently I have tried Magento with XAMPP localhost. Eventually I'm experiencing a terrible slowness in loading up Magento. Hope anyone could help me out in finding a proper solution other than the ...
0
votes
2answers
2k views

External access to Magento instances

I have started investigating alternatives to my project and a few questions came out that I couldn't answer by myself. The problem is: I want to create a web page able to access multiple Magento ...
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 ...
0
votes
2answers
2k views

My magento 2 is not working after install japanese locale file

I have a trouble with my Magento 2 - 500 page error in front and backend. Error log: 2016/05/29 21:28:00 [error] 2681#2681: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ...
0
votes
1answer
175 views

Converting image path to Zend_PDF_Image object

I have an issue where running the following function is returning the error report: "Cannot create image resource. File not found.";i:1;s:2101:"#0 /var/www/html/jack-london/lib/Zend/Pdf/Image.php(...
1
vote
1answer
235 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->...
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 ...