Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Suddenly a lot of error messages


Guest

Recommended Posts

Yesterday nothing wrong and this morning all of the error messages. I have not changed anything and no changes have been made to the server.

 

Some data

Installed Version: osCommerce Online Merchant v2.3.4.1

Database Host: localhost

Server OS: Linux

Database: MySQL 5.5.5-10.1.37-MariaDB

HTTP Server: Apache

PHP Version: 7.2.14 (Send: 3.2.0)

 

These are the error messages
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/bystephanie/public_html/includes/functions/compatibility.php on line 22

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; shoppingCart has a deprecated constructor in /home/bystephanie/public_html/includes/classes/shopping_cart.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; navigationHistory has a deprecated constructor in /home/bystephanie/public_html/includes/classes/navigation_history.php on line 13

Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /home/bystephanie/public_html/includes/functions/sessions.php on line 62

Warning: session_name(): Cannot change session name when headers already sent in /home/bystephanie/public_html/includes/functions/sessions.php on line 150

Warning: session_save_path(): Cannot change save path when headers already sent in /home/bystephanie/public_html/includes/functions/sessions.php on line 179

Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /home/bystephanie/public_html/includes/application_top.php on line 141

Warning: session_start(): Cannot start session when headers already sent in /home/bystephanie/public_html/includes/functions/sessions.php on line 103

Warning: extract() expects parameter 1 to be array, null given in /home/bystephanie/public_html/includes/application_top.php on line 195

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; currencies has a deprecated constructor in /home/bystephanie/public_html/includes/classes/currencies.php on line 16

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; mime has a deprecated constructor in /home/bystephanie/public_html/includes/classes/mime.php on line 18

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; email has a deprecated constructor in /home/bystephanie/public_html/includes/classes/email.php on line 20

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; language has a deprecated constructor in /home/bystephanie/public_html/includes/classes/language.php on line 16

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; actionRecorder has a deprecated constructor in /home/bystephanie/public_html/includes/classes/action_recorder.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; splitPageResults has a deprecated constructor in /home/bystephanie/public_html/includes/classes/split_page_results.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; tableBox has a deprecated constructor in /home/bystephanie/public_html/includes/classes/boxes.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; infoBox has a deprecated constructor in /home/bystephanie/public_html/includes/classes/boxes.php on line 75

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; infoBoxHeading has a deprecated constructor in /home/bystephanie/public_html/includes/classes/boxes.php on line 100

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; contentBox has a deprecated constructor in /home/bystephanie/public_html/includes/classes/boxes.php on line 132

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; contentBoxHeading has a deprecated constructor in /home/bystephanie/public_html/includes/classes/boxes.php on line 148

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; errorBox has a deprecated constructor in /home/bystephanie/public_html/includes/classes/boxes.php on line 165

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; productListingBox has a deprecated constructor in /home/bystephanie/public_html/includes/classes/boxes.php on line 172

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; oscTemplate has a deprecated constructor in /home/bystephanie/public_html/includes/classes/osc_template.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; breadcrumb has a deprecated constructor in /home/bystephanie/public_html/includes/classes/breadcrumb.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; messageStack has a deprecated constructor in /home/bystephanie/public_html/includes/classes/message_stack.php on line 20

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bm_login has a deprecated constructor in /home/bystephanie/public_html/includes/modules/boxes/bm_login.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bm_search has a deprecated constructor in /home/bystephanie/public_html/includes/modules/boxes/bm_search.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bm_shopping_cart has a deprecated constructor in /home/bystephanie/public_html/includes/modules/boxes/bm_shopping_cart.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bm_order_history has a deprecated constructor in /home/bystephanie/public_html/includes/modules/boxes/bm_order_history.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bm_best_sellers has a deprecated constructor in /home/bystephanie/public_html/includes/modules/boxes/bm_best_sellers.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bm_product_social_bookmarks has a deprecated constructor in /home/bystephanie/public_html/includes/modules/boxes/bm_product_social_bookmarks.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bm_reviews has a deprecated constructor in /home/bystephanie/public_html/includes/modules/boxes/bm_reviews.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bm_specials_scroller has a deprecated constructor in /home/bystephanie/public_html/includes/modules/boxes/bm_specials_scroller.php on line 21

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bm_whats_new_scroller has a deprecated constructor in /home/bystephanie/public_html/includes/modules/boxes/bm_whats_new_scroller.php on line 21

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_manufacturer_title has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_manufacturer_title.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_category_title has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_category_title.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_product_title has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_product_title.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_canonical has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_canonical.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_google_adwords_conversion has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_google_adwords_conversion.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_google_analytics has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_google_analytics.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_mailchimp_360 has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_mailchimp_360.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_opensearch has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_opensearch.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_robot_noindex has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_robot_noindex.php on line 13

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ht_twitter_product_card has a deprecated constructor in /home/bystephanie/public_html/includes/modules/header_tags/ht_twitter_product_card.php on line 13

 

Does this occur? Can someone do something with this? How can I solve this?

Link to comment
Share on other sites

Hello @Jaco-010,

Are you sure that you are running 2.3.4.1 and not 2.3.4?

2.3.4.1 has a hot fix for these errors which should supress them, allthought the root of the errors is still in the code.

Please check your store application_top.php file if you have this code:

// set the level of error reporting
  error_reporting(E_ALL & ~E_NOTICE);

  if (defined('E_DEPRECATED')) {
    error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
  }

You can also try to replace in both aplication_top.php the error report setting to this:

// set the level of error reporting
  error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING);
  ini_set('display_errors','0'); 

If the errors still show then you should change the settings in your php.ini on server level. If you do not know how, or have no access to it, you should ask your hosting service to do it.

All of this is only a hotfix. On long term you should consider to update your store to 2.3.4.1 CE BS Frozen which is at least prepared up to PHP 7.1 or even 7.2.

 

The other temporary fix would be to go back to PHP5.6 until you can fix the settings and/or upgrade your store.

Link to comment
Share on other sites

Just to clarify things, you are almost certainly at either the official 2.3.4 or 2.3.4.1 release, neither of which handle PHP 7 all that well. You show as being at PHP 7.2 -- did your host just update to this level from, perhaps, PHP 5.6? It's far too advanced for the official osC release. 7.2 is trouble even for the community-supported osC 2.3.4.1BS "Frozen" (CE) -- you'll have to drop back to PHP 7.1 if you can. Even osC 2.3.4.1BS "Edge" may still have some trouble with PHP 7.2, although I think it's most of the way to compatible. If you want (or need) to run on PHP 7.x, you will have to go to Frozen or Edge.

Link to comment
Share on other sites

Thank you for your comments.


The provider says that it comes through me and that I made mistakes and that they solved it for me and they have downgraded the PHP version, but they do not bless me, but it was my script. 😊
But I have not changed anything and it works fine.

Good sun all

Link to comment
Share on other sites

If the truth be known your hosts upgraded their system to the latest php version, unless you agreed to the upgrade without checking that your code would work.

Before it happens again, start development of a new store using the latest CE version of oscommerce then you should not get the problem again. As things keep changing you will have to make the move anyway sooner or later.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

Your only "mistake" was running an obsolete version of osCommerce that could not withstand PHP being upgraded to version 7. As suggested by Steve, you should get moving on an upgrade to "Frozen" or even "Edge". If you can specify PHP 7.1, I would go with "Frozen". If you have to use PHP 7.2, go with "Edge" (it still may need some fixes). Do not stay at lower levels of PHP any longer than you need to in order to upgrade your store, because all PHP versions lower than 7.1 are completely unsupported now, and more vulnerable to hackers.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...