- 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
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
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
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
How to reproduce the issue?
I just added Image widget to your home page and there are no errors
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.
The issue has been fixed. Please test to confirm the change
Updated file
/sites/compagnie-francaise-du-conteneur.fr/modules/pkelements/classes/WidgetPkimageCarousel.php
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)I just added Image Carousel widget and save it with no problem https://mega.nz/file/0dJGDJAA#vVTagdTze1QRqL1Xfp96pMKR_LjWrZNyQLJCR1fv1CA
How to reproduce the issue?
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’)
Blog fix:
Open your phpMyAdmin and import following line of code
As for the saving issue, I can’t reproduce the issue, it just works for me https://take.ms/Y6izxs
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)I just tested out different widgets in your shop and everything works and save correctly including reported image widget
https://take.ms/Bf43g
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)Please try now. it should work
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)I would say that’s a conflict of two modules, but not a bug in revolution slider.
I have fixed that