Jump to content
thirty bees forum
  • 0

TB 1.4, PHP 8.1 - errors


sotaxab

Question

TB 1.4, PHP 8.1

Log error after entering the home page.

[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Deprecated:  ord(): Passing null to parameter #1 ($character) of type string is deprecated in /vendor/mrclay/minify/min/lib/JSMin.php on line 333
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Deprecated:  ord(): Passing null to parameter #1 ($character) of type string is deprecated in /vendor/mrclay/minify/min/lib/JSMin.php on line 333
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Warning:  Undefined array key "product" in /modules/productscategory/productscategory.php on line 111
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Warning:  Attempt to read property "id" on null in /modules/productscategory/productscategory.php on line 111
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Warning:  Undefined array key "product" in /modules/productscategory/productscategory.php on line 112
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Warning:  Attempt to read property "id_category_default" on null in /modules/productscategory/productscategory.php on line 114
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Deprecated:  Function strftime() is deprecated in /vendor/smarty/smarty/libs/plugins/modifier.date_format.php on line 81
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Deprecated:  Function strftime() is deprecated in /vendor/smarty/smarty/libs/plugins/modifier.date_format.php on line 81
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Deprecated:  ord(): Passing null to parameter #1 ($character) of type string is deprecated in /vendor/mrclay/minify/min/lib/JSMin.php on line 333
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Deprecated:  ord(): Passing null to parameter #1 ($character) of type string is deprecated in /vendor/mrclay/minify/min/lib/JSMin.php on line 333
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Deprecated:  ord(): Passing null to parameter #1 ($character) of type string is deprecated in /vendor/mrclay/minify/min/lib/JSMin.php on line 333
[10-Apr-2023 15:05:52 Europe/Warsaw] PHP Deprecated:  ord(): Passing null to parameter #1 ($character) of type string is deprecated in /vendor/mrclay/minify/min/lib/JSMin.php on line 333

Is TB 1.4 ok? Currently full of bugs.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

These are not errors, but warnings. And all of those are already fixed in bleeding edge. 

I saw in other thread that you downgraded to 1.3. That's not the right solution. Using PHP7.4 on 1.3 will not fix these warnings, it just masked them. 

You should update to bleeding edge, install collectlogs module, and keep track of all these warnings.

Report those that originates in the core as github issues and we will fix them -- you can then install newer bleeding edge to check that the issue was fixed.

Warnings that originates from third party modules should be fixed as well, otherwise you will not be able to safely update to new PHP versions in the future.

Once all warnings has been fixed, it's safe to switch to higher PHP version. Bleeding edge thirty bees core + most native modules runs without any warnings even on PHP8.2. I have this php version on my production server and I didn't see any notice in the error log for a few weeks now.  

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...