- Priority: 0
- Status: Waiting on customer
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 19.05.26, 19:50
- Opened by: Cesar Hermandez
Ticket #26513 - Urgent: "Replace URL" and "Regenerate CSS" tools not working due to JS error
Hi support team,
I am experiencing a critical issue with Creative Elements. My store is running on PrestaShop 9.1.1 (with Creative Elements v2.5.0-in-stock), and after migrating from a local environment, my product pages are throwing a “Mixed Content” error due to a ghost placeholder image pointing to:
http://localhost:8888/www/ps/ps815_3/modules/creativeelements/views/img/placeholder.png
To fix this, I tried using your built-in tools under Creative Elements > Settings, but both the “Replace URL” and “Regenerate Files” buttons are completely frozen.
Checking the browser console in the PrestaShop 9.1.1 backoffice, I see the following JavaScript error being triggered inside the settings panel:
JavaScript
jquery-3.7.1.min.js:2 Uncaught TypeError: Cannot read properties of undefined (reading ‘substr’)
at HTMLDocument.<anonymous> (settings.js?v=2.5.0-in-stock:18:83) at e (jquery-3.7.1.min.js:2:27028) at t (jquery-3.7.1.min.js:2:27330)
Because PrestaShop 9 has updated its core dependencies and administration layout, settings.js is failing to parse strings or identify elements properly using .substr(), crashing the entire form script.
Since the backend tool is unusable on PrestaShop 9, could you please provide a compatibility hotfix for settings.js or guide me on how to safely run this URL replacement directly via database?
Thank you in advance for your quick support.
Best regards,
Cesar
Comments
Hi, Cesar.
That's definitely not an issue of the theme. You seem to add direct link to the local image and then it migrates to your live store. Just find that image and replace with the proper url
So where can I change this image?
Attachments:
Navigate to the Header template. Click on the Cart widget, find there Footer Section and there you can select the image
When I edit the Shopping Cart element inside a custom Header using the Creative Elements editor, the modifications do not apply to the frontend. Specifically, if I change typography, colors, or translations within the element options, the changes are successfully saved in the backoffice editor, but the live website keeps showing the old styles/texts.
I have already tried the following troubleshooting steps without success:
Cleared PrestaShop native cache (Advanced Parameters > Performance).
Cleared browser cache and tested in Incognito mode.
Used the "Regenerate CSS & Data" tool inside Creative Elements settings.
Could you please help me check what is causing this block?
Thank you in advance.
Best regards,
Hi, Cesar.
I just changed the color with no problem → https://mega.nz/file/xEhAkZYB#ZX_5_lxqGMAm5vDf4kUHVika8uJWBYlAtIPyS_ALARc
How to see the issue?
As I said, the text font and the translation don't change.
Attachments:
Ok, but what configuration did you change?
This
Attachments:
Please check out my screenshot https://mega.nz/file/EFomHAzJ#tow8ApMhW94aGj4rgk6mmATWhTwrE5dxRSeMP45bPlk
So can you tell me where to change the font of the title and the translation of the button?
Attachments:
There is no settings to change sidebar title text. You can do that only by applying your custom CSS which you can add to Theme Settings → Customer CSS As for the translations, you need to find that text in the Promokit Widgets module translation.
I can't find it.
Attachments:
Sorry for misleading. You can find it under the theme translation → https://mega.nz/file/IZ4kTbyT#7VrxIJs84UEtWhD6Z0tecrd85b0OytOXeIt_Np4Elc8
I couldn't find the translation…
I couldn't find the translation, and also…
I have recorded video for you https://mega.nz/file/FJgnCIhI#CYCOgwP6jMdUcxlpx0NPTKurIdeqQTDeUFMg4_WP3qA
The translation is "VIEW CART" not "SHOPPING CART" :(
We have over 15 years of experience with PrestaShop, and it never stops surprising us with its translation system.
I just checked both our demo and local setup, and I can see the translation in the back office:
https://mega.nz/file/tQoE1J6b#Hxbwr7ZQE4VqLixB1IDQGrsJowJXVqJdZgubsIIV3cQ
However, I do not see it on your store.
I can see that the text is translated there, so did you modify it manually somehow?