• Closed by: Marek
  • Closed on: 26.09.19, 16:17
  • Reason: Closed
  • Comment: Glad to help!

Ticket #15591 - AMP Product page not loading

Dear support,

I have an issue with product pages, on the desktop version of the website they works nicely, but on the AMP version I just get a “Fatal Error”:
https://fashiontamers.com/en/m/product/6200-orciani-handbags-pb0013

Hope for your help,
Cheers.

Comments

Marek 16 Sep 2019, 17:52

I need access to your server through FTP, current details dooes’t let me connect

Alessio 17 Sep 2019, 15:25

we have the same problem, if you find a fix please share the solution

Marek 17 Sep 2019, 15:41

@Alessio I have updated the file /modules/pk_amp/controllers/front/product.php now the issue should be fixed

Andrea Scotto Di Minico 18 Sep 2019, 15:08

Thank you Marek for exteding the support.

We have close FTP access - we open it for you and should work. Let us know.
For now we had to disabled the AMP version, you are free to go into the BO and check and enable AMP, or ping me and I will turn AMP on.

Thank you.

Marek 18 Sep 2019, 20:38

Could you please disable all possible cache in your prestashop and server

Andrea Scotto Di Minico 19 Sep 2019, 14:01

All types of caches are turned off: I also double checked and cleaned the smarty cache anyway.

The server running is Apache with PHP-FPM running php 7.2.x.

What I notice is that with debug mode turned on the page works, with turned off it does not work again.
Very strange bug.

Andrea Scotto Di Minico 19 Sep 2019, 14:17

From the apache logs:

…/web/var/cache/prod/smarty/compile/5e/13/e6/5e13e6884d3c484f43d09e399851255c66fb71f8_2.module.pspagebuilderviewstemplat.php on line 45
PHP message: PHP Notice: Trying to get property ‘value’ of non-object in

…/web/var/cache/prod/smarty/compile/5e/13/e6/5e13e6884d3c484f43d09e399851255c66fb71f8_2.module.pspagebuilderviewstemplat.php on line 45

AH01071: Got error ‘PHP message: PHP Notice: Undefined index: image_sizes in …web/var/cache/prod/smarty/compile/5e/13/e6/5e13e6884d3c484f43d09e399851255c66fb71f8_2.module.pspagebuilderviewstemplat.php on line 45
PHP message: PHP Notice: Trying to get property ‘value’ of non-object in

/var/www/clients/client1/web6/web/var/cache/prod/smarty/compile/5e/13/e6/5e13e6884d3c484f43d09e399851255c66fb71f8_2.module.pspagebuilderviewstemplat.php on line 45

It’s like it want’ to access the cache, but all caches are totally disabled.

Alessio 20 Sep 2019, 18:17

I Marek, same problem, I updated the module/pk_amp/ but ever FATAL ERROR on product page

Marek 21 Sep 2019, 10:40

Wee keep working on that…

Marek 21 Sep 2019, 20:34

The issue has been fixed. Please test to confirm the change

Marek 23 Sep 2019, 18:05

There is a problem with Friendly URL‘s for AMP product page and it was disabled for a while…