Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

upgraded php, getting a fatal error


charlottezweb

Recommended Posts

Posted

Greets,

 

We upgraded a low php 5 server to 5.2.1 and it's causing issues with an OSC installation.

 

The error states:

 

Warning: require(includes/boxes/configuration.php) [function.require]: failed to open stream: No such file or directory in /home/xxxxxxx/public_html/store/includes/column_left.php on line 13

 

Fatal error: require() [function.require]: Failed opening required 'includes/boxes/configuration.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/store/includes/column_left.php on line 13

 

 

The only known differences in php (besides the step up from an earlier php 5 release) is that we enabled register_globals. Otherwise, it should be the same.

 

The file it references: /includes/boxes/configuration.php doesn't exist and backups don't have it either so from what I can tell, it's never existed.

 

Any ideas what I'm missing?

 

Thanks!

Posted
Greets,

 

We upgraded a low php 5 server to 5.2.1 and it's causing issues with an OSC installation.

 

The error states:

The only known differences in php (besides the step up from an earlier php 5 release) is that we enabled register_globals. Otherwise, it should be the same.

 

The file it references: /includes/boxes/configuration.php doesn't exist and backups don't have it either so from what I can tell, it's never existed.

 

Any ideas what I'm missing?

 

Thanks!

 

I think you have the admin/includes/column_left.php in catalog/includes

Posted
I think you have the admin/includes/column_left.php in catalog/includes

 

 

Hello from an SMF oldtimer btw :D

Posted
I think you have the admin/includes/column_left.php in catalog/includes

 

Howdy, how's it going? And that was a FAST response!

 

Not sure I'm following you though. I haven't moved any files around. Do you think I'm missing a file now somehow?

Posted
Howdy, how's it going? And that was a FAST response!

 

Not sure I'm following you though. I haven't moved any files around. Do you think I'm missing a file now somehow?

 

 

Sorry for the wait was putting my baby to bed.

 

No there is an store/admin/includes/column_left.php

and an store/includes/column_left.php

 

Seems to me that your store/includes/column_left.php contains the one that should be in store/admin/includes/

 

Does that make sense?

Posted
Greets,

 

We upgraded a low php 5 server to 5.2.1 and it's causing issues with an OSC installation.

 

The error states:

The only known differences in php (besides the step up from an earlier php 5 release) is that we enabled register_globals. Otherwise, it should be the same.

 

The file it references: /includes/boxes/configuration.php doesn't exist and backups don't have it either so from what I can tell, it's never existed.

 

Any ideas what I'm missing?

 

Thanks!

Was your site modified to run with register_globals off?

Posted

Doesn't matter .. look at the error from post one.

 

Warning: require(includes/boxes/configuration.php) [function.require]: failed to open stream: No such file or directory in /home/xxxxxxx/public_html/store/includes/column_left.php on line 13

Fatal error: require() [function.require]: Failed opening required 'includes/boxes/configuration.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/store/includes/column_left.php on line 13

Posted
Sorry for the wait was putting my baby to bed.

 

No there is an store/admin/includes/column_left.php

and an store/includes/column_left.php

 

Seems to me that your store/includes/column_left.php contains the one that should be in store/admin/includes/

 

Does that make sense?

 

I don't see how that would be possible (we just upgraded php, nothing else).

 

Just to test, I copied the /store/includes/column_left.php over to store/admin/includes and that did nothing.

Posted
I don't see how that would be possible (we just upgraded php, nothing else).

 

Just to test, I copied the /store/includes/column_left.php over to store/admin/includes and that did nothing.

 

I'm not saying that the /store/includes/column_left.php should be copied to store/admin/includes ..

 

What I am saying is that you need the correct /store/includes/column_left.php

 

I don't see how that would be possible (we just upgraded php, nothing else).

 

If you copied it then it wasn't working before.

Posted
I don't see how that would be possible (we just upgraded php, nothing else).

 

Just to test, I copied the /store/includes/column_left.php over to store/admin/includes and that did nothing.

 

It's like all the required files in column_left.php are pointing to includes that don't exist in that directory.

 

I removed the requirement for that configuration.php file and the error changes to point to the next required file in column_left.

 

So with what limited experience I have with OSC, there must be a "root" path stored somewhere that was changed somehow that I can alter so it knows where to search for these includes?

Posted

Here is the contents of a "vanilla" store/includes/column_left.php

 

<?php
/*
 $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
 } else {
include(DIR_WS_BOXES . 'categories.php');
 }

 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
 } else {
include(DIR_WS_BOXES . 'manufacturers.php');
 }

 require(DIR_WS_BOXES . 'whats_new.php');
 require(DIR_WS_BOXES . 'search.php');
 require(DIR_WS_BOXES . 'information.php');
?>

Posted
It's like all the required files in column_left.php are pointing to includes that don't exist in that directory.

 

I removed the requirement for that configuration.php file and the error changes to point to the next required file in column_left.

 

So with what limited experience I have with OSC, there must be a "root" path stored somewhere that was changed somehow that I can alter so it knows where to search for these includes?

 

 

No .. your original error stated ..

 

Warning: require(includes/boxes/configuration.php) [function.require]: failed to open stream: No such file or directory in /home/xxxxxxx/public_html/store/includes/column_left.php on line 13

Fatal error: require() [function.require]: Failed opening required 'includes/boxes/configuration.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/store/includes/column_left.php on line 13

 

This means that /store/includes/column_left is trying to include a file called configuration.php.

 

This is wrong .. configuration.php is an admin file!

 

 

Posted

Well, I subbed in your stock left_column and it restored some of the functionality so we're on the right path.

 

I don't get how a php upgrade would cause something like this. The prior left_column contents were this:

 

<?php
/*
 $Id: column_left.php,v 1.1.1.1 2002/12/14 21:33:57 wilt Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2002 osCommerce

 Released under the GNU General Public License
*/

 require(DIR_WS_BOXES . 'configuration.php');
 require(DIR_WS_BOXES . 'catalog.php');
 require(DIR_WS_BOXES . 'modules.php');
 require(DIR_WS_BOXES . 'customers.php');
 require(DIR_WS_BOXES . 'taxes.php');
 require(DIR_WS_BOXES . 'localization.php');
 require(DIR_WS_BOXES . 'reports.php');
 require(DIR_WS_BOXES . 'tools.php');
 require(DIR_WS_BOXES . 'gv_admin.php'); //GV SYSTEM
 require(DIR_WS_BOXES . 'polls.php');
 require(DIR_WS_BOXES . 'coupon_admin.php'); //COUPON SYSTEM
?>

Posted

A php upgrade didn't do it.

 

As I said at the beginning it is just an admin file in the wrong place. I sent you a PM if you want some help.

Posted
A php upgrade didn't do it.

 

As I said at the beginning it is just an admin file in the wrong place. I sent you a PM if you want some help.

 

 

Ok, sending details in a sec...

 

Thanks!

Posted

I think that's it sorted.

 

I replaced /store/includes/column_left.php and modded it

 

mod is noted with "Babygurgles Mod"

 

replaced file is renamed column_left.php_BABYGURGLES_REPLACED

Posted
I think that's it sorted.

 

I replaced /store/includes/column_left.php and modded it

 

mod is noted with "Babygurgles Mod"

 

replaced file is renamed column_left.php_BABYGURGLES_REPLACED

 

 

Thanks again for your help!

 

I still have no clue how this problem started (makes no sense), but I appreciate your help in solving it!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...