Guest karmatosed Posted November 7, 2007 Share Posted November 7, 2007 I pass the config test but I get the following errors: Notice: Undefined index: _a in /var/www/vhosts/creflections.co.uk/httpdocs/shop/index.php on line 30 Notice: Undefined offset: 1 in /var/www/vhosts/creflections.co.uk/httpdocs/shop/index.php on line 36 I don't have zend optimizer installed but the config test still says gree. I get these errors no matter what template I use and really puzzled. Quote Link to comment Share on other sites More sharing options...
Guest shannonlp Posted November 20, 2007 Share Posted November 20, 2007 I pass the config test but I get the following errors: Notice: Undefined index: _a in /var/www/vhosts/creflections.co.uk/httpdocs/shop/index.php on line 30 Notice: Undefined offset: 1 in /var/www/vhosts/creflections.co.uk/httpdocs/shop/index.php on line 36 I don't have zend optimizer installed but the config test still says gree. I get these errors no matter what template I use and really puzzled. Did anyone get an answer to this problem? I am getting the same errors on a fresh install Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted November 21, 2007 Share Posted November 21, 2007 Have you tried uploading the ioncube loaders as described in the "read this first" post at the start of this forum? Quote Link to comment Share on other sites More sharing options...
Guest shannonlp Posted November 21, 2007 Share Posted November 21, 2007 Have you tried uploading the ioncube loaders as described in the "read this first" post at the start of this forum? According to the host and according to the comp-test.php IonCube is loaded. Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted November 22, 2007 Share Posted November 22, 2007 So, why don't you use ioncube rather than Zend then? Quote Link to comment Share on other sites More sharing options...
micso Posted November 25, 2007 Share Posted November 25, 2007 So, why don't you use ioncube rather than Zend then? I have a similar problem I have installed Ioncube Ioncube reports it running OK Compatibility test reports it OK I try to go into admin and get the Zend optimiser not installed screen and can't go past that. So is there something else I must do? Quote Link to comment Share on other sites More sharing options...
Guest shannonlp Posted November 26, 2007 Share Posted November 26, 2007 So, why don't you use ioncube rather than Zend then? Zend is loaded on the server. Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted November 26, 2007 Share Posted November 26, 2007 So, why don't you use ioncube rather than Zend then? I have a similar problem I have installed Ioncube Ioncube reports it running OK Compatibility test reports it OK I try to go into admin and get the Zend optimiser not installed screen and can't go past that. So is there something else I must do? Yes, tell it to look for ioncube instead of Zend. You're getting the Zend error because your CubeCart think it's supposed to be looking for Zend. As you're past the installation stage, and are trying to login, you need to edit your includes/global.inc.php file and change "zend" to "ioncube". This has all been covered several times before people. In fact, there's several threads covering the same thing open at the moment. Quote Link to comment Share on other sites More sharing options...
Guest shannonlp Posted November 26, 2007 Share Posted November 26, 2007 So, why don't you use ioncube rather than Zend then? I have a similar problem I have installed Ioncube Ioncube reports it running OK Compatibility test reports it OK I try to go into admin and get the Zend optimiser not installed screen and can't go past that. So is there something else I must do? Yes, tell it to look for ioncube instead of Zend. You're getting the Zend error because your CubeCart think it's supposed to be looking for Zend. As you're past the installation stage, and are trying to login, you need to edit your includes/global.inc.php file and change "zend" to "ioncube". This has all been covered several times before people. In fact, there's several threads covering the same thing open at the moment. The default installation was looking for ioncube. I changed it to zend and still no effect. Quote Link to comment Share on other sites More sharing options...
Guest shannonlp Posted November 26, 2007 Share Posted November 26, 2007 This is the information about what is installed on the server. This program makes use of the Zend Scripting Language Engine: Zend Engine v2.2.0, Copyright © 1998-2007 Zend Technologies with the ionCube PHP Loader v3.1.32, Copyright © 2002-2007, by ionCube Ltd., and with Zend Extension Manager v1.2.2, Copyright © 2003-2007, by Zend Technologies with Zend Optimizer v3.3.0, Copyright © 1998-2007, by Zend Technologies Quote Link to comment Share on other sites More sharing options...
Guest shannonlp Posted November 26, 2007 Share Posted November 26, 2007 Sorry for the number of replies. Thought I would mention I found this in the knowledge base. If you receive messages containing the text "Notice: Undefined index" it means that the level of PHP error reporting is too high. Please contact your hosting company to ask them how error reporting can be changed from "E_ALL" to "E_ALL ^ E_NOTICE". This can normally be achieved by editing the php.ini file or with a .htaccess file with the content: php_value error_reporting "E_ALL ^ E_NOTICE" I am having the hosting company make this change. Will let you know if this corrects the problem. Quote Link to comment Share on other sites More sharing options...
Guest Cornholio Posted December 14, 2007 Share Posted December 14, 2007 Did you get this sorted with your hosting company? Quote Link to comment Share on other sites More sharing options...
Guest Jennifer99 Posted February 8, 2008 Share Posted February 8, 2008 I had this same problem and found a solution on the bugtracker: http://bugs.cubecart.com/bug_view_advanced....php?bug_id=852 Quote Link to comment Share on other sites More sharing options...
Guest mythical Posted February 19, 2008 Share Posted February 19, 2008 I had this same problem and found a solution on the bugtracker: http://bugs.cubecart.com/bug_view_advanced....php?bug_id=852 I have tried this fix and it only fixes the offset error message for line 30 I still have the other. I also tried the other fix in same post that reported another error. Any ideas on how to fix Notice: Undefined offset: 1 in /home.........../index.php on line 34 Quote Link to comment Share on other sites More sharing options...
Guest Posted February 28, 2008 Share Posted February 28, 2008 I am also getting this error but have logged a support call and will let everyone know what the answer is once I hear back from them Regards Ian Quote Link to comment Share on other sites More sharing options...
Guest Posted February 29, 2008 Share Posted February 29, 2008 OK, I had a quick look at the code myself and it is very easy to fix this problem. Open up index.php and move the line of code require_once 'ini.inc.php'; from below the bottom of the if statement that contains the switch statement that is causing the problem to above it. After you have changed it, it should appear as follows : $debugStart = microtime(); require_once 'ini.inc.php'; if (isset($_GET['_a']) AND $_GET['_a'] == 'search') { ## Do nothing yet... } else { preg_match('#([a-z]{1,6})_([a-z0-9\+]+)\.?([a-z]+)?(\?.*)?$#i', $_SERVER['REQUEST_URI'], $matches); switch ($matches[1]) { The statement to switch off the notices is included in the ini.inc.php file which wasnt being read in until after the offending switch statement. Best wishes Ian Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.