Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blank Admin screen on new install


jacaranda

Recommended Posts

Just installed the latest version of OScommerce on my lappy - I am running PHP 5.0.4 with mysql 4.1.11. The install appeared to go ok but I can't seem to log into the admin area. I can browse the cart and add myself as a user but I just get a blank screen for ..../oscommerce-2.2ms2/catalog/admin/index.php

 

Any suggestions?

 

Richard

Link to comment
Share on other sites

This appear to be the problem ????

 

> tail /var/log/httpd/error_log

 

 

[client 127.0.0.1] PHP Fatal error: Cannot re-assign $this in /data/programs/oscom/oscommerce-2.2ms2/catalog/admin/includes/classes/upload.php on line 31

 

[client 127.0.0.1] PHP Warning: Unknown: 1 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0

Link to comment
Share on other sites

Ok I found the solution - t'was in Geman but it seems to work - Tis' a php 5 thing!

Perhaps php 5 is too cutting edge but anyhow all installs with this php version will fail so can we put this info somewhere important ??? Perhaps this info is posted somewhere but I couldn't find it and some poor bastard in the future will be scratching their head. Here is the post URL http://de.oscommerce.info/kb/MS2/Fehlermeldungen/218

 

 

I just changed the following:

 

=========================================

[catalog]/admin/includes/classes/upload.php

 

Change:

// self destruct

$this = null;

 

 

to:

// self destruct

// $this = null;

unset($this);

 

============================================

in [catalog]/admin/includes/classes/split_page_results.php

 

change

 

$offset = ($max_rows_per_page * ($current_page_number - 1));

$sql_query .= " limit " . $offset . ", " . $max_rows_per_page;

 

 

to:

 

$offset = ($max_rows_per_page * ($current_page_number - 1));

if ($offset < 0)

{

$offset = 0;

}

$sql_query .= " limit " . $offset . ", " . $max_rows_per_page;

 

=====================================================

in [catalog]/includes/classes/split_page_results.php

 

Add

if ($offset < 0)

{

$offset = 0;

}

 

after

$offset = ($this->number_of_rows_per_page * ($this->current_page_number - 1));

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...