Opencart 3.0.2.0 – PHP Fatal error: Can't use method return value in write context

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeOpencart 3.0.2.0 – PHP Fatal error: Can't use method return value in write context

This topic has been marked as not resolved.

I copied all website files/database from a testing server to the live server. I realized all the product pages were broken (blank white pages).

Upon checking error_log, I found the following error:

————————————————————————————————————–
[17-Nov-2018 22:45:44 UTC] PHP Fatal error: Can’t use method return value in write context in /home2/precipe9/storage/modification/catalog/controller/product/product.php on line 312
————————————————————————————————————–

This is what line 312 reads:

————————————————————————————————————–
$product_option_image_width = !empty($this->config->get(‘theme_’ . $this->config->get(‘config_theme’) . ‘_image_option_width’)) ? $this->config->get(‘theme_’ . $this->config->get(‘config_theme’) . ‘_image_option_width’) : 50;
$product_option_image_height = !empty($this->config->get(‘theme_’ . $this->config->get(‘config_theme’) . ‘_image_option_height’)) ? $this->config->get(‘theme_’ . $this->config->get(‘config_theme’) . ‘_image_option_height’) : 50;
————————————————————————————————————–

I temporarily changed it to read:

————————————————————————————————————–
$product_option_image_width = “50″;
$product_option_image_height = “50″;
————————————————————————————————————–

Any now the product pages work but hoping for a better solution.

When I copied the files from the testing server to the live server, I manually copied “/public_html/storage” by hand to the live server. Was this correct?

Any help?

Regards,

Matt

November 18, 2018 at 1:10 am #66107

Any word on this? Is this the right place to ask the question since I paid for your extended support? I am having some other issues too…

November 20, 2018 at 1:46 am #66129

Hi,

We will need the website url, admin and ftp access, so we can check.

You can use hidepost to share private information with the support staff.

BR,
ThemeBurn team

November 22, 2018 at 1:36 pm #66187

Hi,
Facing same problem
I installed burntheme after installing theme product page got error.

http://shmoir.com/index.php?route=product/product&product_id=45
Fatal error: Can’t use method return value in write context in /home/shmoir/public_html/system/storage/modification/catalog/controller/product/product.php on line 312

I checked 2-3 times just after installing theme it got error before that opencart working fine. Please check & help to resolve this issue asap. Below is the details you need.

Thanks

  • This reply was modified 1975 days ago by  sur_1108.
  • This reply was modified 1975 days ago by  sur_1108.
  • This reply was modified 1975 days ago by  sur_1108.
November 22, 2018 at 4:07 pm #66198

@mattreigle

A quick fix can be viewed here:

http://support.themeburn.com/topic/product-page-not-working

BR,
ThemeBurn team

November 23, 2018 at 11:57 am #66226
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.