• 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

Fred 19 May 2026, 21:59

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

Cesar Hermandez 19 May 2026, 22:08
Cesar Hermandez 20 May 2026, 04:05

So where can I change this image?

Attachments:

Fred 20 May 2026, 21:22

Navigate to the Header template. Click on the Cart widget, find there Footer Section and there you can select the image

Cesar Hermandez 21 May 2026, 18:19

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,

Fred 21 May 2026, 22:25

Hi, Cesar.
I just changed the color with no problem → https://mega.nz/file/xEhAkZYB#ZX_5_lxqGMAm5vDf4kUHVika8uJWBYlAtIPyS_ALARc

How to see the issue?

Cesar Hermandez 21 May 2026, 22:33

As I said, the text font and the translation don't change.

Attachments:

Fred 21 May 2026, 22:55

Ok, but what configuration did you change?

Cesar Hermandez 21 May 2026, 22:59

This

Attachments:

Fred 21 May 2026, 23:09
Cesar Hermandez 21 May 2026, 23:13

So can you tell me where to change the font of the title and the translation of the button?

Attachments:

Fred 21 May 2026, 23:21

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.

Translations → Modules → Promokit Widgets
Fred 21 May 2026, 23:40

Sorry for misleading. You can find it under the theme translation → https://mega.nz/file/IZ4kTbyT#7VrxIJs84UEtWhD6Z0tecrd85b0OytOXeIt_Np4Elc8

Cesar Hermandez 22 May 2026, 00:20

I couldn't find the translation…

Cesar Hermandez 22 May 2026, 03:49

I couldn't find the translation, and also…

Cesar Hermandez 24 May 2026, 00:47

The translation is "VIEW CART" not "SHOPPING CART" :(

Fred 25 May 2026, 23:22

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?