News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Missing line numbers for errors.

Started by Coon_Dog, January 21, 2024, 05:47:46 AM

Previous topic - Next topic

Coon_Dog

After updating 1.1.21 to 2.0.19 I no longer get line numbers for errors.  PHP 8 and SQL 8.0.  Same on default theme and custom.  Just displays the error and that's it.  Kinna makes it hard to debug.  Just wondering if I am the only one.  Is there a better way to look at logs other that within SMF?  Thanks!

Doug Heffernan

Quote from: Coon_Dog on January 21, 2024, 05:47:46 AMAfter updating 1.1.21 to 2.0.19

May I ask why didn't you upgrade to the latest current version, 2.1.4?

Quote from: Coon_Dog on January 21, 2024, 05:47:46 AMI no longer get line numbers for errors.  PHP 8 and SQL 8.0.  Same on default theme and custom.  Just displays the error and that's it. 

What is the precise version of php? Can you also please post a screenshot of how the errors look like?

Arantor

Probably a larger factor is what the error *is* as to whether you'll get a line number; not all errors in 2.0 *can* give you a line number.

Coon_Dog

Quote from: Arantor on January 21, 2024, 06:37:22 AMProbably a larger factor is what the error *is* as to whether you'll get a line number; not all errors in 2.0 *can* give you a line number.

I have saw a lot of different errors, but could be.  Most recent "Value of type null is not callable" no line number.  Time will tell.

Coon_Dog

Quote from: Doug Heffernan on January 21, 2024, 06:07:02 AM
Quote from: Coon_Dog on January 21, 2024, 05:47:46 AMAfter updating 1.1.21 to 2.0.19

May I ask why didn't you upgrade to the latest current version, 2.1.4?

Quote from: Coon_Dog on January 21, 2024, 05:47:46 AMI no longer get line numbers for errors.  PHP 8 and SQL 8.0.  Same on default theme and custom.  Just displays the error and that's it.

What is the precise version of php? Can you also please post a screenshot of how the errors look like?


PHP Version 8.0.30

Advertisement: