Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

SigPro Folder Error

  • Chris Elliott
  • Chris Elliott's Avatar Topic Author
  • Offline
  • New Member
More
6 years 11 months ago - 6 years 11 months ago #166318 by Chris Elliott
SigPro Folder Error was created by Chris Elliott
Hi there

We found an interesting problem yesterday. We were creating a SigPro folder and we inadvertently added two spaces between the folder title text.

In the example below, the % characters reflect where the spaces were in our folder name:

New%%Gallery

This folder name was accepted without error and I was able to add images to that folder.

Then, when adding the gallery to the article page, the plug-in code was this:

{gallery}New%Gallery{/gallery}

Note that the two spaces (%%) were replaced by a single space (%) in the plug-in code.

When trying to view the gallery the front-end, we saw an error message that the folder could not be found.

By checking the content of the folder in question (FTP), this is where we noted we had had two spaces between words New and Gallery - exactly has we had created it.

We removed the two spaces from the folder name and simply added one instead. This fixed the problem.

So, there is clearly a tiny bug where, if you inadvertently use double spaces between words in a folder name, the code does not throw out an error at the time of creating a folder.

Further, when the plug-in adds the {gallery...} code to the article page, it removes the double spaces and replaces them with a single space.

I think this is one to look out for but if it can be fixed in a future release it will be the best way forward.
Last edit: 6 years 11 months ago by Chris Elliott. Reason: typo and clarification

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 11 months ago #166332 by Krikor Boghossian
Replied by Krikor Boghossian on topic SigPro Folder Error
Hello there,

Generally speaking having non UTF-8 chars, illegal characters and spaced is a bad practise and it can lead to issues in multiple environments.

However thank you for your feedback since some validation rules will help the user to avoid potential issues.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum