Jump to content

Errors After Installation


Guest karmatosed

Recommended Posts

Guest karmatosed

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.

Link to comment
Share on other sites

  • 2 weeks later...

Guest shannonlp

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

Link to comment
Share on other sites

Guest shannonlp

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Guest Brivtech

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.

Link to comment
Share on other sites

Guest shannonlp

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.

Link to comment
Share on other sites

Guest shannonlp

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

Link to comment
Share on other sites

Guest shannonlp

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.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 2 weeks later...
Guest mythical

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...