xenocrat / chyrp-lite

An ultra-lightweight blogging engine, written in PHP.
https://chyrplite.net/
BSD 3-Clause "New" or "Revised" License
402 stars 42 forks source link

Bug: "Trying to access array offset on value of type null" #173

Closed Tagirijus closed 1 year ago

Tagirijus commented 1 year ago

Hey there,

with the new version 2022.03 it seems like I cannot visit the home, archive or feed site. It gives me the error:

Trying to access array offset on value of type null

I did every step mentioned under Upgrade in the README.md. What else can I do to give a proper debug info for you? Or do you maybe already can reproduce it on your end (magically)? :D

xenocrat commented 1 year ago

Hello there,

Please create a file named DEBUG in your includes folder. With this file present, the error should then be reported with a backtrace. If you copy and past the backtrace I can investigate further. As much additional information as possible is also helpful: PHP version, platform (Linux / Mac / Windows etc.), database (MySQL, SQLite, PostgreSQL, clean install or upgrade?

Tagirijus commented 1 year ago

Oh sorry, this even is described here in the wiki which I did not check. Thanks for the info.

I now switched forth and back, re-checked the config.json.php and even tried a fresh install. Suddenly the fresh install of the older version did also not work. I must have broke something important without noticing or so.

But: Now it is working again as it seems. There might have been something with the .htaccess, but I am not sure. In the end I am so sorry that I did not keep track of all the things I just did. But it is working again now.

If something else will be weird again, I now know how to enable the debug mode. Thanks a lot for that information.

Again: sorry for bothering, argh!

Edit: And yes, next time I will try to remember giving you technic specs as well .. oh boy, sorry! PS: PHP 8.0, Linux server AFAIK, MySQL and it happened during upgrade.

xenocrat commented 1 year ago

No problem at all. I'm glad it's fixed! :-)