• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 27.09.21, 15:55
  • Opened by: Eric Tannouri
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #22333 - ContextErrorException in WidgetPkimageCarousel.php

When placed in debug mode i get this error from the prestashop: ( i verified that the placeholder.png does exist )

ContextErrorException
Warning: getimagesize(http://mywebsite/modules/creativeelements/views/img/placeholder.png): failed to open stream: HTTP request failed! HTTP/1.1 404 NOT FOUND
in WidgetPkimageCarousel.php line 336
at WidgetPkimageCarousel→render()
in widget-base.php line 522…

Comments

Fred 27 Sep 2021, 20:20

Hi, Eric.
Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your Back-office and FTP Server

Eric Tannouri 28 Sep 2021, 14:20

To access the site add to your host
195.15.216.132 www.compagnie-francaise-du-conteneur.fr 195.15.216.132 compagnie-francaise-du-conteneur.fr

Eric Tannouri 28 Sep 2021, 17:48

To access the site add to your host
195.15.216.132 www.compagnie-francaise-du-conteneur.fr 195.15.216.132 compagnie-francaise-du-conteneur.fr

Fred 28 Sep 2021, 20:43

How to reproduce the issue?
I just added Image widget to your home page and there are no errors

Eric Tannouri 29 Sep 2021, 16:17

Hello,
Thank you for your answer.
I just reactivated the debug mode and the error appears again. Have you tried with the debug mode activated? Otherwise when it is not activated, it seems that there is no error.

Fred 29 Sep 2021, 23:01

The issue has been fixed. Please test to confirm the change
Updated file
/sites/compagnie-francaise-du-conteneur.fr/modules/pkelements/classes/WidgetPkimageCarousel.php

Eric Tannouri 30 Sep 2021, 09:51

ok, with the fix the debug mode runs, but now I can’t save the changes made on creative element, when I click on update I get 500 internal server error.
if i put back the old WidgetPkimageCarousel.php file, i can save the changes with creative element again.

Attachments:

Sans titre-1.png (30.7 KiB)
Fred 30 Sep 2021, 10:11

I just added Image Carousel widget and save it with no problem https://mega.nz/file/0dJGDJAA#vVTagdTze1QRqL1Xfp96pMKR_LjWrZNyQLJCR1fv1CA

How to reproduce the issue?

Eric Tannouri 30 Sep 2021, 12:43

Thank you for your answer.
you place again your fix, and now i am unable to save any change made with creative elements.
when for example i change something on the product page, not related to caroussel, and save it, i get again the message.
for sure the debug mode works but i cant do any change from the creative element module.
when i replace the older file wich provoke the error, i can save the work done.
I renamed your phpfile with the prefix phpfix. you can try with both version to see.

I found another situation not related to this one but still:
when trying to save a blog post: i get An error occurred during the update of the object simpleblog_post (Unknown column ‘gallery_style’ in ‘field list’)

Fred 30 Sep 2021, 17:30

Blog fix:
Open your phpMyAdmin and import following line of code

ALTER TABLE `b5hg_simpleblog_post` ADD `gallery_style` VARCHAR(32) NOT NULL AFTER `id_product`;
Fred 30 Sep 2021, 17:33

As for the saving issue, I can’t reproduce the issue, it just works for me https://take.ms/Y6izxs

Eric Tannouri 04 Oct 2021, 13:23

Thanks for your follow up the blog is working now.

But I still have this error 500 internal server, when the patch on WidgetPkimageCarousel.php file is online.
If I put the old version this error does not appear.

When the error appears after clicking on the green button to save, the changes are still saved.

You can’t reproduce the error ?

Attachments:

Capture d’écran 2021-10-04 13... (395.6 KiB)
Fred 04 Oct 2021, 23:55

I just tested out different widgets in your shop and everything works and save correctly including reported image widget
https://take.ms/Bf43g

Eric Tannouri 18 Oct 2021, 12:43

Hello,
I’m coming back to you about the 500 error that I always get.
I can’t use the creative element module with the promokit widgets anymore, and it seems to be related to simpleblog as you can see in the screenshot of the error.
Can you please take a look.
Thanks in advance

Attachments:

616d36a48d868.png (83 KiB)
Fred 18 Oct 2021, 12:50

Please try now. it should work

Eric Tannouri 26 Oct 2021, 13:47

Hello, thanks for the previous modification.
I got a new error, related to revslider as you can see in the screenshot.
I get this error by starting the debug mode and clicking on creative popup > popups in the left bar.
I already contacted the develloper of this module and he told me that this error is due to revslider.
If you make any changes, can you tell me what you did because the url you have matches the production server and I have a test server, so I would like to apply the change to both.
Thanks for your support

Attachments:

Capture d’écran 2021-10-26 13... (88.9 KiB)
Fred 26 Oct 2021, 14:12

I would say that’s a conflict of two modules, but not a bug in revolution slider.
I have fixed that