Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unexpected Error - PHP/Database?


hose30

Recommended Posts

Posted

Hi,

 

My site has been working as usual but all of a sudden every page displays the following - including admin areas:

 

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home4/ascafoc1/public_html/shop/includes/functions/database.phpon line 19

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home4/ascafoc1/public_html/shop/includes/functions/database.php:19) in /home4/ascafoc1/public_html/shop/includes/functions/sessions.php on line 102

Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home4/ascafoc1/public_html/shop/includes/application_top.php on line 279

Fatal error: require(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/php/56/usr/share/pear') in /home4/ascafoc1/public_html/shop/includes/application_top.php on line 279

 

 

I am guessing this means I need to install an update? However, I am currently in the process of re-designing and re-launching our site so is there a 'quick fix' to get around this?

 

Thank you! 

 

Posted

Perhaps you can fix it a little by taking the database functions from the newer release (eg 2.3.4)

that will then make the calls all mysqli

so backup your current

catalog/includes/functions/database.php

and catalog/admin/includes/functions/database.php

 

and replace with similar files from the new version.

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Posted

perhaps you can change the error logging so it does not report on depreciated function and carry on with your redesign ?

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Posted

Would also need to update the sessions as the missing language is a sessions problem...that was solved in (I think) 2.3.3.3

Posted

I am currently in the process of re-designing and re-launching our site

 

 

Unfortunately, you're wasting your time and effort if you're building on an old version of osC. Your multiple error messages tell me that you're using a fairly old version. Why not jump to the current version (2.3.4 or 2.3.4-Bootstrap) as your base, and go from there? You should be able to move all your existing data over.

 

To get past the holiday selling season on your old store, can you possibly get your host to let you temporarily roll back PHP to the version you were running before these errors showed up? The errors are due to your host upgrading PHP (which old osC versions are incompatible with). Use the reprieve to move forward to the current osC, which is compatible with current PHP levels.

Archived

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

×
×
  • Create New...