How can I make PHP display the error instead of giving me 500 Internal Server Error [duplicate]

Check the error_reporting, display_errors and display_startup_errors settings in your php.ini file. They should be set to E_ALL and “On” respectively (though you should not use display_errors on a production server, so disable this and use log_errors instead if/when you deploy it). You can also change these settings (except display_startup_errors) at the very beginning of your … Read more

Adding VirtualHost fails: Access Forbidden Error 403 (XAMPP) (Windows 7)

Okay: This is what I did now and it’s solved: My httpd-vhosts.conf looks like this now: <VirtualHost dropbox.local:80> DocumentRoot “E:/Documenten/Dropbox/Dropbox/dummy-htdocs” ServerName dropbox.local ErrorLog “logs/dropbox.local-error.log” CustomLog “logs/dropbox.local-access.log” combined <Directory “E:/Documenten/Dropbox/Dropbox/dummy-htdocs”> # AllowOverride All # Deprecated # Order Allow,Deny # Deprecated # Allow from all # Deprecated # –New way of doing it Require all granted </Directory> … Read more

Django stops working with RuntimeError: populate() isn’t reentrant

This is caused by a bug in your Django settings somewhere. Unfortunately, Django’s hiding the bug behind this generic and un-useful error message. To reveal the true problem, open django/apps/registry.py and around line 80, replace: raise RuntimeError(“populate() isn’t reentrant”) with: self.app_configs = {} This will allow Django to continue loading, and reveal the actual error. … Read more

Only variable references should be returned by reference – Codeigniter

Edit filename: core/Common.php, line number: 257 Before return $_config[0] =& $config; After $_config[0] =& $config; return $_config[0]; Update Added by NikiC In PHP assignment expressions always return the assigned value. So $_config[0] =& $config returns $config – but not the variable itself, but a copy of its value. And returning a reference to a temporary … Read more

Apache redirect to another port

You should leave out the domain http://example.com in ProxyPass and ProxyPassReverse and leave it as /. Additionally, you need to leave the / at the end of example/ to where it is redirecting. Also, I had some trouble with http://example.com vs. http://www.example.com – only the www worked until I made the ServerName www.example.com, and the … Read more

PHP Fatal error: Call to undefined function json_decode()

Using Ubuntu? Short answer: sudo apt-get install php7.2-json (or php7.1-json or php5-json depending on the PHP version you’re running) Then of course make sure you restart Apache: sudo service apache2 restart Or if you are using PHP-FPM: sudo service php7.2-fpm restart (Or php7.1-fpm or php5-fpm) Explanation Debian has removed the previous JSON extension as of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)