Unfortunately there aren’t any error messages, I’ve turned on all levels of error reporting in PHP, Nginx and MariaDB, but there aren’t anything logging.
If I downgrade to php 5.6, it is working again, and it has this configure command
I’ve hired an server technician to go over it, he also checked that all levels of reporting had been enabled, so if there’s an error, it should be logged. But it isn’t. And he could not either find the error.
I tried to enable $fail = true in kirby/toolkit/database.php for throwing messages, still nothing. Are there any other variables I can change to true for more reporting?
Kirby provides the debug option (c::set('debug', true)), but that only sets the PHP error reporting, so it shouldn’t add more error reporting in your case if you already enabled everything.
Does the HTTP 500 error still occur if you comment out the code inside the route (comment out everything and if that works, only comment out the last two lines with the DB query)?
Do you get a blank page with HTTP 500 status code or does Nginx display an HTML error page that says “Internal Server Error”?
Notice: Array to string conversion in /home/u769777553/public_html/kirby/toolkit/lib/database.php on line 318
Notice: Undefined property: PDOStatement::$Array in /home/u769777553/public_html/kirby/toolkit/lib/database.php on line 318
Fatal error: Uncaught Error: Function name must be a string in /home/u769777553/public_html/kirby/toolkit/lib/database.php:318 Stack trace: #0 /home/u769777553/public_html/kirby/toolkit/lib/database/query.php(653): Database->query('SELECT * FROM c...', Array, Array)
#1 /home/u769777553/public_html/kirby/toolkit/lib/database/query.php(691): Database\Query->query('SELECT * FROM c...', Array)
#2 /home/u769777553/public_html/site/config/config.php(80): Database\Query->first()
#3 /home/u769777553/public_html/kirby/toolkit/helpers.php(270): Kirby->{closure}('aventura-amazon...')
#4 /home/u769777553/public_html/kirby/kirby.php(746): call(Object(Closure), Array)
#5 /home/u769777553/public_html/index.php(16): Kirby->launch()
#6 {main} thrown in /home/u769777553/public_html/kirby/toolkit/lib/database.php on line 318
Which Kirby version are you using? I have fixed this exact bug in December before the PHP 7 release and it is included in Kirby 2.2.3. Older Kirby versions are not compatible with PHP 7.