Keyword

Simple Image Gallery Error Messages

  • Newbiz Solutions
  • Newbiz Solutions's Avatar Topic Author
  • Offline
  • New Member
More
15 years 1 week ago #32348 by Newbiz Solutions
Simple Image Gallery Error Messages was created by Newbiz Solutions
installed simple image Gallery, it is working fine but some error messages are being displayed at the top of the web page.

Deprecated: Function ereg_replace() is deprecated in C:\wamp\www\albacmat\Web Template\plugins\content\jwsig.php on line 78

Notice: Undefined index: JPG Support in C:\wamp\www\albacmat\Web Template\plugins\content\jwsig.php on line 80

Notice: Undefined variable: gd_support in C:\wamp\www\albacmat\Web Template\plugins\content\jwsig.php on line 83

any help would be apprieciated.
thank you.  :)

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

More
15 years 6 days ago #32349 by Katia
Replied by Katia on topic Re: Simple Image Gallery Error Messages
Please provide me with a link to your site.

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

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

More
14 years 11 months ago #32350 by pjcdawkins
Replied by pjcdawkins on topic Re: Simple Image Gallery Error Messages
It appears that the PHP source code for SIG is quite buggy.

Lines 80, 81 and 82 of the source code start with
if(!$gdinfo['some string'])
That should be changed to
if(empty($gdinfo['some string']))

The ereg_replace (non-PCRE regular expression replacement) function (on line 78) should be replaced with preg_replace, as the former is deprecated from PHP version 5.3. I suspect the fix might be to:

Replace on line 78:
ereg_replace('[[:alpha:][:space:]()]+'
with:
preg_replace('/\D/'

On line 83, replace:
$gd_support
with:
$gdsupport

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


Powered by Kunena Forum