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 [php-5.4]

Marks questions related to Magento on php 5.4

0
votes
1answer
29 views

Magento backend login error

I accidentally deleted admin_user table and when I created it again, I'm unable to access the backend. It keeps throwing the error page with a new report number every time. On checking var/reports, it ...
1
vote
1answer
195 views

Call to a member function getMethod() on a non-object in /var/www/html/app/code/local/Openpay/Banks/Model/Observer.php on line 16

I have implemented a third party api and I am getting bellow error: Fatal error: Call to a member function getMethod() on a non-object in /var/www/html/app/code/local/Openpay/Banks/Model/Observer....
1
vote
1answer
192 views

retrieving collection in magento-2?

I want use below query in my custom module SELECT category_name FROM faq_category WHERE id = ANY (SELECT category_name FROM faq_category_description WHERE category_name = 1); But i don't know ...
1
vote
0answers
48 views

how to fetch data in block Magento2? [closed]

In Table1: Id Category-Name Status 1 Account Enable 2 Shipping Disable 3 Payment Enable In Table2: Id Category-Name Question Answer Status Position 1 1 ...
1
vote
0answers
80 views

Change upsell.phtml in magento

I have site - magento 1.9.2 . Upsells products are vizualizate аs slideshow, i want to sort them in four columns and show them in a few lines no matter how many. I don't want to have a slide show. I ...
0
votes
1answer
2k views

Unable to retrieve deployment version of static files from the file system

I asked my hosting site to update PHP so that I could configure Payzone to Magento 2. It seems that it may have upset something as when I try to go on the website, magento admin or File zilla I get an ...
0
votes
1answer
1k views

Fetch array with PHP MySQL query

So I've had no issues with writing simple queries and pulling the data through that I need (mostly using fetchOne(), but this is my first time trying it with a little bit more comprehensive query. I'...
0
votes
0answers
1k views

GET headers in file_get_contents()

To use API i have to send proper request. API documentation says that to receive information send request like this: GET https://www.stuller.com/api/v1/products?SKU=IOLITE-GEN:117417:G HTTP/1.1 ...
0
votes
0answers
213 views

How to add SMS sending function inside a custom module

I have to add SMS sending function at the checkout success page. This is my code: namespace send\sms\Block; class sendsms extends \Magento\Framework\View\Element\Template { /** * @var \...
0
votes
1answer
57 views

How To Index Management in Magento 2 on Local Server?

I need to reindex but can't get it to work. I'm in the root directory and when running: magento indexer:reindex It states that magento isn't a valid command, so after further research I try and run ...
1
vote
2answers
805 views

Magento 1.9.3.4 Mails not sending

I`ve my store on 1.9.3.4 and now my customers are not receiving order confirmation email, Contact us mail, new registration mail, forget password mail. I tried sending through the admin panel but ...
0
votes
2answers
98 views

Not able to override phtml file

I am trying to override phtml file inside theme module. Below is my code Module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
50 views

magento product link goes blank after searching product

I am using Luxury theme and I am getting issue regarding search. See my video about the error: https://www.screencast.com/t/sCcPQFeC Whenever we search the product by name and click on product ...
1
vote
0answers
207 views

City drop-down at checkout magento2

I'm working with magento2,i want custom field drop down city with dynamic data for checkout page in magento2.
2
votes
2answers
3k views

How to get Cookies already set on the browser

I have cookies already set on the browser, name as cookie_name. And how can I use magento 2 cookies manager. to retrieve the cookie already set on the browser. <?php namespace YourCompany\...
1
vote
0answers
123 views

Failed to connect port 443: Timed out

I have magento on server , I'm trying to access its of REST api in my local. But I find an error "Failed to connect port 443: Timed out". here is my code $userData = array("username" => "...
0
votes
1answer
89 views

Uploading php.ini file breaks Magento (front end and back end)

When I click the link to edit a customer's details just get a blank page. The error log shows PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3072 bytes) in /...
1
vote
0answers
71 views

After migrate to PHP 7.0 i don't have image on my main page

can somebody help me, I migrate my magento 1.8 from php 5.4 to 7.0 and now have problem with show image on main page
1
vote
2answers
73 views

Magento: Product Catalog Images Not Upload

Magento ver. 1.9.2.0 PHP Ver. 5.6
0
votes
2answers
197 views

how to reduce the magento website page load time? [duplicate]

I presume the website pages are slow down because of this filter to get only configurable products.. I used ->addAttributeToFilter('type_id', array('eq' => 'configurable')); this code works ...
1
vote
1answer
160 views

How to decrease brand product list page load time in magento?

I am collecting brand specific products based on the brandId in brandproductlist.php as follows., $collection = Mage::getModel('catalog/product')->getCollection() ->addAttributeToSelect('*')...
0
votes
1answer
32 views

Access single variable values globally in magento wihin .php files

I want to access $brandId in all other .php files in magento.. How do I do it? $brandId = array_search($brand_name, array_map('strtolower',$this->getAvailableBrands())); is in code/core/...
1
vote
0answers
68 views

Some of customer login in magento 2.1 welcome Undefined is getting

Once the customer logged in to our site Welcome Undefined message is getting in Header rather than customer name, Some of the customers are working but some old customers its throwing Welcome ...
0
votes
1answer
342 views

Unable to backup mysql database using mysqldump(php code)

I am trying backup my mysql database of linux hosted website(remote server-cpanel account) using mysqldump and executing this code through php file(db_backup.php). db_backup.php { exec('mysqldump --...
3
votes
1answer
226 views

Magento 2 : Error While Installing

I want to install magento 2 on Ubuntu. I upgrade my PHP version to 7.1.3 and when I execute command to check php version I am getting below output: PHP 7.1.3-3+deb.sury.org~trusty+1 (cli) (built: ...
0
votes
2answers
36 views

How to Get top 5 Subcategories?

<?php $newCategory = Mage::getModel('catalog/category')->load($newSubCategoryId)->limit(5); ?> I'm trying to get top 5 catogeries how can i get?
0
votes
1answer
1k views

Update Magento 2 PHP Settings - two php configuration? find right php.ini

I would like to update Magento 2 from 2.1.3 to 2.1.4. While readiness check I get this error and hint: PHP Settings Check * Your current PHP memory limit is 256M. Magento 2 requires it to be ...
0
votes
5answers
350 views

Magento 2 js not loading after installing a new theme

This is my current magento 2 website http://jamesviana.online/ Above is the error I have installed a new paid theme which have been installed the backend is working while in the frontend the js not ...
1
vote
1answer
1k views

Magento 1 - Save Collection Without Foreach

I am currently going through and optimizing our codebase for our custom modules. I am using PHP Codesniffer along with the Magento Coding Standard rules to scan our code. In many of our files I see a ...
0
votes
2answers
1k views

How to get the css file path in magento?

<link rel="stylesheet" type="text/css" href="magento/skin/frontend/default/default/css/styles.css" media="all" /> how can i get this path in magento ? i have tried this code but it didn't work....
1
vote
1answer
87 views

Right path of an image? [duplicate]

<?php $productCollection = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToFilter('name', array('like' => '%hp%')) ->...
3
votes
2answers
3k views

How should I get the image path?

<?php include 'app/Mage.php'; Mage::app(); $resource = Mage::getSingleton('core/resource'); $readConnection = $resource->getConnection('core_read'); $writeConnection = $resource->...
0
votes
2answers
80 views

What is the attribute to check if products are sold in incrememts?

I have the below HTML that I need to wrap in a PHP IF Statement. I need the statement to check if Enable Qty Increments = Yes (set in Inventory settings of Magento) however, I'm not sure what the ...
1
vote
1answer
94 views

How can i redirect from 1 page to product detail page?

I want when i click on the anchor(a) tag means image it redirect me the product detail page what should i do for it? Here is my code. <?php include 'app/Mage.php'; Mage::app(); $...
1
vote
1answer
597 views

Uncaught TypeError: Argument 2 passed to Mage::dispatchEvent() must be of the type array

"PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Mage::dispatchEvent() must be of the type array, object given, called in TestimonialController.php on line 26" I am facing ...
1
vote
2answers
45 views

Is there any library for this error or something else?

$_helper = $this->helper('catalog/output'); i received this error on browser when I run the code. Using $this when not in object context in C:\xampp\htdocs\magento\test.php What should i do for ...
1
vote
1answer
47 views

How to show an image on browser in Magento [closed]

<?php $hint = 'dell'; $sql="SELECT p.`entity_id`, pv.`value` as name, GROUP_CONCAT(DISTINCT(pm.`value`) SEPARATOR ', ') as imagesPath FROM `...
1
vote
5answers
4k views

How to turn off Bread Crumb

I am learning version 1.9. How to turn off bread crumb?
0
votes
0answers
131 views

How to acces one .phtml file in another .phtml file magento?

In magento development how to access one ".phtml" file in one or more other ".phtml" files? i accessed my extension " .phtml" file in one page checkout page extension file is working fine but checkout ...
1
vote
1answer
2k views

get attribute option value in magento 2.1 using helper in module data.php

Ex : Manufacturer attribute code, i want to access selected manufacturer option value , by creating a function or method in helper file in module. can anyone please suggest me the code. thank you
1
vote
2answers
555 views

How to call php if/else statement if value empty [closed]

Hopefully a nice simple question to start the day... In success.phtml, I would like to achieve the following using PHP: $_commissionGroupCode = [If $_voucher is empty, echo "DEFAULT". Else echo "...
0
votes
2answers
192 views

How to generate particular order csv in sucess action?

I want to create a csv for particular order but my code is generate all order csv. Please check my code if i do any thing wrong suggest me its really helping me. My code $arvio=Mage::...
1
vote
2answers
712 views

RegEx in PHP file

I would like to place a RegEx Code in PHP code to validate a password. Example below of current code: if (strlen($password) && !Zend_Validate::is($password, 'StringLength', array(6))) { $...
3
votes
1answer
139 views

Is there any Module to create text on product (tshirt), upload images on product

I want to make a custom module to personalize products, such as add text on tshirt, upload images on products and then save it as final product. I have searched many links, but all extensions are ...
1
vote
1answer
722 views

How can i solve the error : PHP Strict Standards: Declaration of CustomImportExport_Export::export()

I get error during export product, Error : (error_log) [15-Jul-2016 12:24:04 UTC] PHP Strict Standards: Declaration of CustomImportExport_Export::export() should be compatible with ...
0
votes
1answer
616 views

Magento Module development

I want to develop a module in which i want to call my api from every page of magento website How can i achieve that ? I have tried with observer but unable to do that can any one give a solution for ...
0
votes
2answers
634 views

Mage::getStoreConfig('Section/Group/Field') path not in core_config_data

The error after turning developer mode back on is: Fatal error: Call to a member function toOptionArray() on a non-object in /home/vimarket/public_html/app/code/core/Mage/Adminhtml/Block/System/...
0
votes
1answer
483 views

How to Sum the variable for calculate the total quantities in magento?

I am using magento 1.9.2.3 version and I have the pdf that display the total items that needs to be pick for shipping. But we want the grand total for the items and quantities to calculate. Suppose: ...
0
votes
1answer
182 views

Create Subgroups in customer groups

Magento provides a functionality of customer groups,which are used through out our website.But is it possible to create sub groups to the parent groups and use them in efficiently through out our ...
1
vote
1answer
250 views

Ajax call in magento

I am new to magento, and i am trying to make a simple ajax call in it jQuery.ajax({ url: url, dataType: 'json', type : 'post', data: data, async: true, success: ...