Error 503 Showing up

Post

Posted
Rating:
#4752 (In Topic #961)
All of a sudden, I'm getting 503 errors on my site. I have verified with my host that the server is not overloaded and other domains are working. This is the contents of the error_log file in the main directory:

[11-Oct-2018 19:36:21 UTC] PHP Notice:  Undefined index: SUPPRESS_ERROR_DEATH in ...\global.php on line 270

Also, when checking the file location referenced, this is the current contents at and around this location:



What is the issue since I'm not a PHP programmer but can access the code, if needed.

Post

Posted
Rating:
#4753
What version of Composr is it?

Post

Posted
Rating:
#4754
The latest version, 10.0.19.

Post

Posted
Rating:
#4757
PM sent...

Post

Posted
Rating:
#4765
Ok. PHP on this server is crashing when any PHP mysqli_fetch_field* functions are called. There must be some nasty issue somewhere.

I was able to re-code the db_get_query_rows function (in sources/database/mysql/mysqli.php) to work without using these functions. It isn't 100%, because any integers in the database are coming through to PHP as strings. But our code probably can tolerate that in the vast majority of cases.

Curtis, you should get onto the server owner. Also backup the sources/database/mysql/mysqli.php I did.

Post

Posted
Rating:
#4766
I will pass this on to the server operator. Thanks!

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Adam Edington)
#5274
To resolve this better I have implemented a mysql_pdo database driver for Composr. I can confirm it seems to work stably on the server involved here.

It will be available in the next patch release.

https://github.com/ocproducts/composr/commit/3f055e955980ec34416e97cc0e0f7271edaaaf25

Curtis, please let us know if you find any issues. The whole test set passes though so it should be stable.

Post

Posted
Rating:
#5292
Everything looks good so far. Thanks!
3 guests and 0 members have recently viewed this.