Forums

Notice: Undefined offset: 0 in ...../libraries/cegcore/gcloader.php on line 162

twhite 28 Jun, 2017
Hi,

Thanks for creating a great product.

I created a small from using cfv5 on Joomla 3.72 running rockettheme gantry5 template. When form loads, every rockettheme menu item gets an error:

Notice: Undefined offset: 0 in /Applications/MAMP/www/j4next/libraries/cegcore/gcloader.php on line 162

So, if I have 6 menu top level items, I get the above message 6 times, plus one time for each sub menu pull-down item.

gcloader.php looks like it belongs to chronoforms so somehow it seems to be tripping up rockettheme.

I am working on local host with PHP 5.6.32 and get same error message if I switch to PHP 7.1.15.

Any suggestions how to work around this? Please see screen shot attachment.
GreyHead 28 Jun, 2017
Hi twhite,

The simplest answer is to set your site Error Reporting to System Default or to None which will hide PHP Notices and Errors which are not usually any problem apart from the irritating messages.

If you are in developer mode and need the messages displayed then we can probably work out some code to remove this one. The code in question is this block
				//if the class doesn't belong to the GCore then don't try to auto load it
				if($dirs[0] !== "GCore"){
					return false;
				}

Bob
twhite 28 Jun, 2017
Hi Bob,

My server Error Reporting is set to Maximum .

Thanks for the tip. I changed that line of code to:

if( isset ($dirs[0] ) && $dirs[0] !== "GCore"){
                    return false;
                }


and it is all quiet now. Still don't understand why that function
static public function register($name){
would be called for each menu item, but i let the issue rest.

Tom
This topic is locked and no more replies can be posted.