0

I cloned a test site for Joomla under SiteGround to WAMP. It runs fine, except for this problem. On SiteGround if I have an SQL error, it shows a page with the error and the SQL statement. On WAMP, I just get a blank page.

I assume I'm missing an Apache parameter somewhere to turn on MySQL error reporting, but I cannot find it after searching here and elsewhere.

Here are the Apache php.ini error reporting parameters:

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
display_errors = On
display_startup_errors = On 
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off 
John B
  • 1
  • 1
  • Have you restarted apache after modifying php.ini? – MrTux Oct 23 '16 at 21:22
  • There is no such thing as "mysql error reporting" in apache or php. There is only error reporting and it is a question of how the mysql error is captured in php, whether it will be displayed by php or not. – arkascha Oct 23 '16 at 21:23
  • Could you elaborate on your PHP code that is running the MySQL query? – Paul Karam Oct 23 '16 at 21:34
  • I have this strange feeling of `mysql_*` functions being used on a WAMP installation with PHP7.. – icecub Oct 23 '16 at 21:57
  • I am using the Joomla MySQL db interfaces, and the Joomla installation is cloned exactly from the SiteGround website to WAMP. So Joomla/PHP/Apache are deciding whether to display the error or a blank page. Clearly not Joomla, as it and its parameters are identical to SiteGround. I am using PHP 5.6. – John B Oct 23 '16 at 22:40
  • And yes, I restarted both Apache and MySQL after making any php.ini or other config mods. – John B Oct 23 '16 at 23:14
  • Well, try this post here: http://stackoverflow.com/questions/5438060/showing-all-errors-and-warnings?rq=1 – Paul Karam Oct 24 '16 at 05:00
  • Does siteground set a default error page where you have not imitated that on your local setup? Something along the lines of `ErrorDocument 404 /missing.html` – RiggsFolly Oct 24 '16 at 10:38

0 Answers0