You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117174 JCE Pro + Fabrik: Backslash ( \ ) in Image URLs on Windows causes broken paths ONLY when saved via Fabrik field

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Resilience on Friday, 18 April 2025 00:16 BST

Resilience

Hi JCE Team,

I've identified a specific issue regarding image URL path separators when using JCE Pro within a Fabrik textarea field on a Windows/XAMPP development environment. While JCE Pro itself seems to generate URLs with backslashes (\) on Windows, this only results in broken images after saving when the content is processed and saved by Fabrik. Saving the same content via Joomla's core article manager works correctly.

Environments Tested:

  • Issue Occurs:

    • Joomla 3.10.12 / PHP 7.4.29 / JCE Pro 2.9.50 / Fabrik 3.10 / Xampp 3.3.0 / Windows 10 PRO

    • Joomla 5.1.2 / PHP 8.2.12 / JCE Pro 2.9.84 / Fabrik 4.5.1 / Xampp 3.3.0 / Windows 10 PRO

    • Joomla 5.1.2 / PHP 8.2.12 / JCE Pro 2.9.84 / Fabrik 4.5.1 / Xampp 3.3.0 / Windows 11 PRO

  • Working Correctly (Linux Control):

    • Joomla 4.4.1 / PHP 8.1.27 / JCE Pro 2.9.80 / Fabrik 4.5.1 / Linux Webhost (CloudLinux)

(Note: Using JCE Pro in all relevant tests)

The Problem & Steps to Reproduce (on Windows/XAMPP):

  1. Configure JCE Path: In JCE Profile -> Plugin Parameters, set a dynamic path like images/$id.

  2. Test 1: Joomla Core Article:

    • Edit or create a standard Joomla article.

    • Use JCE to insert an image (either via the Image Manager button or Paste/Drag&Drop).

    • Observation 1: The JCE Image Manager dialog may show the URL with backslashes (\) on Windows.

    • Save the Joomla article.

    • Result 1: Check the saved article's source code or view it on the frontend. The <img> tag's src attribute has correct forward slashes (/) and the image displays perfectly. Joomla's saving process seems to normalize the path.

  3. Test 2: Fabrik Textarea Field:

    • Edit or create a Fabrik record/form containing a textarea element configured to use the JCE editor.

    • Use JCE within that Fabrik field to insert an image (either via the Image Manager button or Paste/Drag&Drop).

    • Observation 2: The JCE Image Manager dialog may again show the URL with backslashes (\) on Windows.

    • Save the Fabrik record/form.

    • Result 2: Check the saved Fabrik data's source code or view the record on the frontend. The <img> tag's src attribute is incorrect. It either contains backslashes (\) or the slashes are completely missing (e.g., src="https://www.joomlacontenteditor.net/images465your_image.jpg"). The image appears as a broken placeholder.

Key Finding:

The root issue appears to be JCE Pro generating URLs with backslashes (\) when running on a Windows environment. While Joomla's core content saving process successfully normalizes these paths to forward slashes (/), Fabrik's saving process does not seem to perform the same normalization, leading to broken image paths specifically when saving content edited via JCE within a Fabrik field.

Expected Behavior:

JCE Pro should ideally generate URLs using only forward slashes (/) regardless of the server OS, to ensure maximum compatibility with other extensions and web standards.

Request:

Could you please investigate why JCE Pro generates backslashes in image paths when running on Windows environments? Even if the final breakage occurs due to how Fabrik processes the saved data, providing standard forward slashes (/) from JCE would likely prevent this specific compatibility issue with Fabrik (and potentially other extensions) on Windows setups.

Thank you for your time and assistance!

Ryan

Please try JCE Pro 2.9.85 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Resilience

Great, it works fine on Joomla 5! I haven't tried on Joomla 3.10.12 because I don't remember if it's compatible. Do you have any info for me? Eventually, I can make a clone of the VM to test.

Ryan

JCE Pro 2.9.85 is compatible with Joomla 3.10

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Resilience

Thanks Ryan, I confirm that it now works perfectly also on Joomla 3.10.12.
Great!
;-)