Home Forum
Welcome, Guest
Username Password: Remember me

Undefined index in check_system.php on line 385
(1 viewing) (1) Guest

TOPIC: Undefined index in check_system.php on line 385

Undefined index in check_system.php on line 385 6 months ago #12568


  • Posts:1
  • Laur
  • Fresh Boarder
  • OFFLINE
Hello all,

I'm using Joomla 1.5.15 on localhost with XAMPP server [Apache Friends XAMPP (Basis Package) version 1.7.3].

I have installed Expose Flash Gallery for Joomla (com_expose_4.6.3_alpha3c.zip).

In Joomla (back end), in Expose component, when I click "System check" I have this message "Undefined index: JPG Support in ...\components\com_expose\expose\manager\check_system.php on line 385"
and also a Fatal Warning:
"JPG support disabled Fatal warning
⇒ Must be activated in php.ini for manipulating JPG type images. You probably need to ask your host to activate it."

In check_system.php, at line 385, there is:
"test" => ($array['JPG Support'] == true),

which checks the output of gd_info() function.

But if I output gd_info() with:
<?php var_dump(gd_info()); ?>

I get this:
array(12) { ["GD Version"]=>  string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=>  bool(true) ["FreeType Linkage"]=>  string(13) "with freetype" ["T1Lib Support"]=>  bool(true) ["GIF Read Support"]=>  bool(true) ["GIF Create Support"]=>  bool(true) ["JPEG Support"]=>  bool(true) ["PNG Support"]=>  bool(true) ["WBMP Support"]=>  bool(true) ["XPM Support"]=>  bool(false) ["XBM Support"]=>  bool(true) ["JIS-mapped Japanese Font Support"]=>  bool(true) }


So there is a bug... in the php file should be JPEG instead of JPG, like this:
"test" => ($array['JPEG Support'] == true),


If I make this change I don't receive the Warning and Fatal Error.

I hope this helps .

Re: Undefined index in check_system.php on line 385 6 months ago #12594


  • Posts:667
  • admin
  • Administrator
  • OFFLINE
Image files need to be .jpg

Re: Undefined index in check_system.php on line 385 3 weeks, 1 day ago #12947

Hello,

My config test says the JPG support for php is off. Trouble is Im not sure how to turn it on. can you help?

PHP Version 5.3.2-1ubuntu4.2
WebServer to PHP interface apache2handler


Any help would be greatly appreciated.

Re: Undefined index in check_system.php on line 385 3 weeks ago #12948


  • Posts:869
  • TBK
  • Administrator
  • OFFLINE
Edit the php.ini file or at an htaccess file where you enable it (all depending on your hosting environment)
When asking for help, then please include:
- URL
- Expose version
- Joomla version
- SEF status (on/off)

Always RTFM!

Re: Undefined index in check_system.php on line 385 3 weeks ago #12949

no htaccess and when I look at the ini file im not sure where or what to change

Re: Undefined index in check_system.php on line 385 3 weeks ago #12955


  • Posts:869
  • TBK
  • Administrator
  • OFFLINE
JPG support is handled by the GD lib/extensions, look at the phpinfo and see what the status for GB is and if JPG is supported (enabled).
When asking for help, then please include:
- URL
- Expose version
- Joomla version
- SEF status (on/off)

Always RTFM!
Time to create page: 0.26 seconds