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.

Bug & workaround: Cannot handle uppercase filenames! (have to be lowercase)

  • Vince Patron
  • Vince Patron's Avatar Topic Author
  • Offline
  • New Member
More
16 years 8 months ago - 15 years 3 months ago #13209 by Vince Patron
Hi,

I just downloaded the latest SIG Pro for Joomla 1.5 and found this bug: It errors out if the .jpg file in the gallery has any uppercase letters.

The error message is this:

Warning: getimagesize(/home/nortapd/test1/images/stories/nortap/Gallery-Solar/img_0110.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/nortapd/test1/plugins/content/jwsigpro/sigpro_engine.php on line 86
Image type not supported

The problem is that the filename is really "IMG_0110.jpg", but somehow the code is dropping the name to lower case. Obviously, the workaround is to rename the files to all lowercase.

But can you guys please fix it the right way? It's kind of a pain to have to rename the files. It's picking up the mixed case letters in the directory name, just the filename gets picked up incorrectly.

Thanks!

-Vince

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

  • Vince Patron
  • Vince Patron's Avatar Topic Author
  • Offline
  • New Member
More
16 years 8 months ago - 15 years 3 months ago #13210 by Vince Patron
I guess I'm replying to myself...  :) I fixed it as follows.

In the file plugins/content/jwsigpro.php

Line 140 reads:
$images[] = trim(strtolower($f));

This should be changed to:
$images[] = trim($f);

Basically, just take out the function that forces the filenames to lower case.

-Vince

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

More
16 years 7 months ago #13211 by blackshadow
Awesome work Vince - thank you so much!

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

More
16 years 6 months ago #13212 by Burion
Thanx Vince!!  :D One of the most important tipps in this forum!!

Juergen

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 6 months ago #13213 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Bug & workaround: Cannot handle uppercase filenames!
Hi my friends!

It's a bug for the plugin under the joomla 1.5...
We are working to publish a new version with several fixes.
One of them is the "strtolower" issue...

In this forum this bug is reported and answered several times!

Thank you again vpatron!

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

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

More
16 years 6 months ago - 16 years 6 months ago #13214 by kruess
Hi vinikey,

The same "strtolower" problem for the labels few lines further down the jwsigpro.php (at line 162).

Hopefully that one is included in the buglist, too?

BfN,
Konrad

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 6 months ago #13215 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Bug & workaround: Cannot handle uppercase filenames!
Of course!  :)

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