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
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 ...
1
vote
0answers
30 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
11 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
29 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
7 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
31 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
9 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
59 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
52 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
126 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
73 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` = ...
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?
2
votes
1answer
72 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
67 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
75 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
1answer
175 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 ...
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
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/...
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
477 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
268 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 ...
2
votes
0answers
151 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,...
0
votes
1answer
271 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((...
-1
votes
1answer
247 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
168 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 ...
1
vote
1answer
923 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
193 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
241 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->...
0
votes
1answer
475 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="...
2
votes
1answer
782 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:...
0
votes
0answers
339 views

Override magento 2 Framework classes

How can I override the following file: vendor/magento/framework/Locale/Format.php
3
votes
2answers
587 views

Blank Page When Installing Magento Open Source 2.2.2

I am getting the following error when trying to run the initial php setup script, please advise $ php bin/magento setup:install Fatal error: Declaration of Zend\Mvc\Controller\PluginManager::get($...
0
votes
1answer
389 views

Magento writes Empty needle warning every 5 minutes

I am trying to understand if what I am seeing is causing any kind of issue in the store, and If there is a need to take an action? I can see in my system.log below 2 lines are being written once ...
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' ...
1
vote
1answer
542 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 ...
2
votes
0answers
299 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
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
6answers
2k 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
1answer
200 views

Product attribute join with custom table Magento 2.17 - how to retrieve custom table field

In my code I have seller_id as the product attribute and the seller information are there in a custom table (lof_marketplace_seller). I want to join the product collection with this custom table. I ...
0
votes
2answers
175 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
1answer
1k views

Decoding failed: syntax error after save

I'm experiencing Decoding Failed error on saving few downloadable product (not all) from magento 1.x backend exception 'Zend_Json_Exception' with message 'Decoding failed: Syntax error' in xxx/lib/...
0
votes
1answer
233 views

Send attachments via email

1 Question: How do I send my attachment with the other data? 2 Question: Is there any way I can get the uploaded file and change the name to the email and the schedule of the uploader? This code ...
0
votes
1answer
545 views

PDF printing not working for two orders

I am using magento 1.9.3.3 and have a weird issue, whereby when I go to print order PDF's for two orders I get the error: Please define PDF object before using. Strange, as it works splendidly for ...
0
votes
2answers
228 views

SQLSTATE[42S02]: Base table or view not found: 1146 'db-eshop.log_customer' doesn't exist,

There has been an error processing your request SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db-eshop.log_customer' doesn't exist, query was: SELECT * FROM log_customer ORDER BY ...
2
votes
2answers
757 views

Magento 1.9 Custom Module Form $mail = new Zend_Mail(); include more $params

I created a simple custom module and have a problem with $parmas which I can't figure out for hours now. Here is the IndexController.php responsible for it: public function sendemailAction() ...
0
votes
1answer
507 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 ...