Parse errrorr
-
Did you alter the Default theme’s Page template at all?
I never mess with the default theme.
Would you care to view page.php code?
If you didn’t alter the code, there’s no reason to see it.
The first thing to do would be to rule-out a plugin or theme-specific issue.
1. Reset your plugins following this guide:
If that resolves the issue, reactivate each one individually until you find the cause.
2. Use an FTP or SFTP client and navigate to
/wp-content/themes/and rename every directory except the/classic/directory. This will force the Classic theme to activate. If that works, then download WordPress again and upload a new copy of the/wp-content/themes/default/directory.Tried resetting the plugins.
No go.
I did re-set file permissions (chmod) at server in wp-content.
Would that have effected viewing?
That’s possible. Directories should be 755 or 777 for write permissions and files should be 644 or 666 for write permissions.
Did you rule-out a theme-specific problem?
Sorry macmanx.
How do I determine theme specific problem?
If I recall, (been a long day) things changed after file permissions were reset.
Follow step 2 in my earlier reply.
Upon viewing the Manage Themes area, we see this:
Warning: uksort() [function.uksort]: The argument should be an array in /data/19/1/56/51/1871703/user/2033523/htdocs/www/wp-admin/themes.php on line 65
Warning: array_slice() expects parameter 1 to be array, boolean given in /data/19/1/56/51/1871703/user/2033523/htdocs/www/wp-admin/themes.php on line 86
Warning: array_keys() [function.array-keys]: The first argument should be an array in /data/19/1/56/51/1871703/user/2033523/htdocs/www/wp-admin/themes.php on line 174
Warning: natcasesort() [function.natcasesort]: The argument should be an array in /data/19/1/56/51/1871703/user/2033523/htdocs/www/wp-admin/themes.php on line 175
What do you suggest please?
ThanksPlease follow step 2 from my earlier reply to rule-out a theme-specific issue.
Will custom design still be available after fix?
You’re just changing the directory names, so your customizations will remain in tact. You can change the directory names back when you’re done.
According to the error:
Parse error: syntax error, unexpected $end in /data/19/1/56/51/1871703/user/2033523/htdocs/www/wp-content/themes/default/page.php on line 929The problem may be coming from the Default theme. If your “custom design” is a modified Default theme, then “I never mess with the default theme” is not entirely true, and you will lose customizations if you have to replace those files.
macmanx- Followed your steps to the letter.
No joy.
Still getting the same error.
Server side shows site is up.
When I navigate to error:
htdocs/www/wp-content/themes/default/page.php on line 929
Viewing the source code reveals only 755 lines not 929.
Does this make sense to anyone?
That’s because the source is also displaying code generated by
page.php.Try this:
1. Make a backup copy of
/wp-content/themes/default/(use your FTP client to download the directory).2. Delete
/wp-content/themes/default/from the server.Is the error gone?
Can I rename it instead of deleting it?
The topic ‘Parse errrorr’ is closed to new replies.