Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
53 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
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('...
2
votes
1answer
862 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 ...
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.
0
votes
1answer
101 views

Magento : Error Backend Opening Product

I can not open any product anymore in backend. After some seconds, Magento error page shows up, with following error report: a:5:{i:0;s:31:"Read timed out after 10 seconds";i:1;s:4472:"#0 /lib/Zend/...
1
vote
0answers
129 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 ...
2
votes
0answers
455 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 ...
1
vote
0answers
141 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 ...
2
votes
1answer
236 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
1answer
1k views

Magento 2: How to override Zend library files function only?

I would like to override below file magento\vendor\magento\zendframework1\library\Zend\Captcha\Image.php Can we do with magento\app\code\zendframework1\library\Zend\Captcha\Image.php ? What will ...
0
votes
2answers
164 views

New Zend Framework 1 Security Vulnerability. I use Sendgrid, am I safe?

I've been made aware of the Zend Framework 1 Security Vulnerability. I understand that an attack could happen and so I wanted to be secure. We don't send mails directly from our magento server, we ...
7
votes
4answers
628 views

ZEND FRAMEWORK 1 SECURITY - Email Settings?

I have a question on the new Zend security vulnerability announced by Magento recently regarding the email settings in System-> Configuration-> Advanced-> System-> Mail Sending Settings-> Set Return-...
5
votes
2answers
295 views

Should I be worried about the latest Zend-Mail RCE Vulnerability similar to the PHP-Mailer/Swift Mailer Vulnerability if I use Magento?

From the recently disclosed Zend-mail remote code execution vulnerability: Affected Zend Framework versions: Zend Framework < 2.4.11 Remote Code Execution (CVE-2016-10034) zend-mail < 2.4....
2
votes
0answers
935 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/...
1
vote
1answer
483 views

Magento 1.9 Custom invoice pdf pushing totals onto new page

Hi guys the totals block in my invoice pdf keeps going to a new page, even though there is room on the previous page (Figure 1 is totals block on new page and Figure2 is previous page): Figure 1 ...
2
votes
1answer
2k views

How to update multiple rows of a table in a single query?

I need to update the qty of all products (around 15.000 items) in a cycle, but it takes a very long time. How can I build a SQL script within the loop to run it in a single execution?. I have this ...
6
votes
3answers
397 views

Magento Module creation gives error

I have successfully created a new module in app/code/CompanyName_ModuleName and created etc/module.xml and after that run following command from my terminal in my sudo php bin/magento setup:upgrade my ...
2
votes
1answer
1k views

How to use Union query in a Magento 2 collection

I am working on Magento 2 grid UI component. For that I am generating grid using multiple table which does not have any relation( so I cant join). I am using union to combine the tables. But while ...
2
votes
1answer
2k views

How to add custom text fields in Magento 2 admin module page

I have created a new admin module page in magento 2 using this link http://devdocs.magento.com/guides/v2.0/ext-best-practices/extension-coding/example-module-adminpage.html. Now I want to add two text ...
0
votes
2answers
30 views

How to fetch magento admin page output?

I am trying to get output of a page in admin from a helper file which I need for a cron to convert it into pdf and email: $html = file_get_contents('http://dltr.org/index.php/admin/...
0
votes
1answer
163 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 ...
1
vote
0answers
362 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": "...
0
votes
1answer
743 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 ...
0
votes
1answer
671 views

Magento invoice custom text not aligning

Hi guys I am attempting to edit the invoices of magento but I cannot get my custom text to align with the totals on the right. I would like the headings 'important' and 'Pay us by bacs' to be inline ...
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 ...
1
vote
1answer
136 views

Using Zend json server on Magento 2

I'm new to Magento 2 and I'm trying to create a module that uses Zend Json Server. The initial code in the module controller was (in Magento 1): public function postAction() { $server = new ...
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 ...
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
30 views

Quantity adjustments for en_IN locale websites

When adjusting quantity on the product page or cart page to any quantity, Zend Framework isNumber() function fails to validate the number for numbers passed through in an en_IN locale website. As a ...
2
votes
1answer
1k views

Interface 'Zend\Stdlib\JsonSerializable' not found [closed]

I'm trying to learn e-commerce solution development and because magento has huge community all around the globe as well as it's scalability with extensions and all other I planned working on Magento.I ...
1
vote
0answers
104 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. ...
0
votes
1answer
425 views

Fatal error: Cannot instantiate interface Zend\Http\Client\Adapter\AdapterInterface in magento2 [closed]

$httpAdapter = new \Zend\Http\Client\Adapter\AdapterInterface(); give error - Fatal error: Cannot instantiate interface Zend\Http\Client\Adapter\AdapterInterface.
14
votes
2answers
2k views

How is magento 2 better than magento 1?

I am just curious to know about magento 2 performance and how it is better than magento 1.x versions. Recently I started learning magento 2 and found that it is a whole new set of theory based on pure ...
1
vote
2answers
71 views

->order('v.entity_id IS NULL') gets translated incorrectly

Zend_Db_Select::order is translating ->order('v.entity_id IS NULL') incorrectly to `v`.`entity_id IS NULL` ASC. It thinks "entity_id NULL" is the column name. Any idea so I get the following? ...
5
votes
3answers
3k 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?
8
votes
2answers
2k views

what are the zend components using by magento2?

Magento2 now using zend framewok 1 ,zend framework 2 ,symfony etc. I want to know what are the components taken from zend framewok 1 and components taken from zend framewok 2. For example: Zend_Db (...
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
2answers
71 views

catalog_product_validation_before event

How does this work? I cannot seem to find anything on it. I'm looking for a way to validate a field before before_save. If condition are good, then continue, otherwise throw error. This would happen ...
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
1answer
73 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....
4
votes
3answers
1k views

Magento 2: How to use Zend Date

In Magento 1 we are using zend_date in a following manner new Zend_Date(date, 'MM-dd-Y'); or new Zend_Date(date('M-01-Y', strtotime("+1 months", strtotime(date("Y-m-d"))))); But how can I use ...
1
vote
2answers
369 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 ...
0
votes
2answers
545 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: ...
2
votes
2answers
629 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 '...
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 $...
1
vote
1answer
2k views

Zend Select “where IN (?)” filter returning results that are NOT IN

I am working on a segmented version of Magento's Invoiced Totals report. Currently without my additional filters the report reflects what Magento's Core report shows, good. I am trying to add a ...
0
votes
3answers
814 views

How To Fetch And Display Last 4 Table Rows?

The following code currently outputs the first row matching the criteria is_read != 1', 'is_remove != 1'. I need to modify this code to output the last 4 table rows that matches said criteria. I tried ...
1
vote
0answers
951 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->...
-1
votes
1answer
40 views

How much configurations we can do with Magento 1.9 , How it will be differ than cakephp? [closed]

I am newbie to Magento? I want to know how CakePHP and Magento differs. I have found most of the common folder structure. What is the relation between Zend and Magento? Kindly ignore if question ...