I forget to add my log files, here it is:
[17-Jan-2016 12:14:28 UTC] PHP Parse error: syntax error, unexpected 'MEMORY_LIMITβ' (T_STRING) in /home/****/public_html/wp-config.php on line 23
[17-Jan-2016 12:17:27 UTC] PHP Parse error: syntax error, unexpected end of file in /home/****/public_html/wp-includes/random_compat/random_bytes_dev_urandom.php on line 123
The errors that you have provided are a syntax error in your wp-config.php file. It looks like it may be a encoding error possibility.
Have you added anything to the wp-config file?
Possible solution
in wp-config.php look for the line that have ini_set(‘MEMORY_LIMIT’, some value). You may have to replace the ” ‘ ” (single quotes) with new ones. There may be a encoding issue with the single quotes.
Thanks for your reply my friend, I double-checked my config.php file, everything seems OK, also here:
[removed wp-config]
Welp, I think I see your issue. It does look like the file was edited (a key piece of information to the puzzle for what caused the error). “WP_MEMORY_LIMIT” should be a define() instead of ini_set().
ini_set adds content to the server environment and not PHP. The issue would be that WP_MEMOERY_LIMIT is not a server config thus causing the server to throw an error.
Replace the ini_set() with define( 'WP_MEMORY_LIMIT', '96M' );. Check out https://codex.wordpress.org/Editing_wp-config.php for more information.
I think there is no mistake in my config.php file, It seem okey in Notepad++ editor. All php codes are colored/closed. Now I’m trying to reach my php.ini file, maybe I can edit memory limit from there.
What about second log error ? :/
In my user.ini file, memory limit is already assigned as 256m :S
Note: Sorry for floodig π
The second error may be due to the first one. The error PHP Parse error: is a syntax error; meaning that there is something wrong with the code. Sometimes the error messages are not correct about the location but it is correct that there is some issues.
Bro, this issue really bother me π
Another advice for me?
website: canpahali.com.tr
Without knowing what you have changed, I am not sure anyone here can help you. Have you made the changes to the wp-config.php file as suggested? if so, what does the server error log say now?
Yes, I changed my wp-config file as you suggest to me.
I finished configuration of website a few week ago. Everything was goin well and I realized that error kick in. Maybe some plugins or WP version updated automatically and cause this problem.
I set the error_log file as visible, can you analyze it please ? My syntax problem was started by itself, because there is no action between 19-Dec-2015 and 07-Jan-2016.
Here my error_log: [removed]
Please delete link after you look. Thank you again…
——————————-
UPDATE: I’ve recieved a mail from my hosting firm, they said “/wp-includes/random_compat/random_bytes_dev_urandom.php” was updated and fixed.
Now Im getting white page in my website. Here is another issue for us π
Problem solved.
My wordpress system automatically updated to last version, I don’t know why but some of files was not complete. My hosting firm replaced “random_bytes_dev_urandom.php” file with It’s new version, error has gone. This is why Im getting Server Error: 500.
Thanks for your help Justin, I’ve learned so much things today.
Glad you got it working again.