Forums

[resolved] Parse errrorr (22 posts)

  1. KJZRRadio
    Member
    Posted 1 year ago #

    Can someone advise please?

    Can't view site. Custom design.

    http://www.kjzrradio.com

    Thank you

  2. James
    Happiness Engineer
    Posted 1 year ago #

    Did you alter the Default theme's Page template at all?

  3. KJZRRadio
    Member
    Posted 1 year ago #

    I never mess with the default theme.

    Would you care to view page.php code?

  4. James
    Happiness Engineer
    Posted 1 year ago #

    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:

    http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F

    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.

  5. KJZRRadio
    Member
    Posted 1 year ago #

    Tried resetting the plugins.

    No go.

    I did re-set file permissions (chmod) at server in wp-content.

    Would that have effected viewing?

  6. James
    Happiness Engineer
    Posted 1 year ago #

    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?

  7. KJZRRadio
    Member
    Posted 1 year ago #

    Sorry macmanx.

    How do I determine theme specific problem?

    If I recall, (been a long day) things changed after file permissions were reset.

  8. James
    Happiness Engineer
    Posted 1 year ago #

    Follow step 2 in my earlier reply.

  9. KJZRRadio
    Member
    Posted 1 year ago #

    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?
    Thanks

  10. James
    Happiness Engineer
    Posted 1 year ago #

    Please follow step 2 from my earlier reply to rule-out a theme-specific issue.

  11. KJZRRadio
    Member
    Posted 1 year ago #

    Will custom design still be available after fix?

  12. James
    Happiness Engineer
    Posted 1 year ago #

    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 929

    The 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.

  13. KJZRRadio
    Member
    Posted 1 year ago #

    macmanx- Followed your steps to the letter.

    No joy.

    Still getting the same error.

    http://www.kjzrradio.com

    Server side shows site is up.

  14. KJZRRadio
    Member
    Posted 1 year ago #

    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?

  15. James
    Happiness Engineer
    Posted 1 year ago #

    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?

  16. KJZRRadio
    Member
    Posted 1 year ago #

    Can I rename it instead of deleting it?

  17. James
    Happiness Engineer
    Posted 1 year ago #

    Of course, sorry for not mentioning that.

  18. KJZRRadio
    Member
    Posted 1 year ago #

    Okay. Uploaded what I thought was a backup of
    our "custom theme", is now looking like a total default.

    http://www.kjzrradio.com

    Can I presume the custom images are somewhere?

  19. James
    Happiness Engineer
    Posted 1 year ago #

    I'm not sure how your custom theme was structured. You'll have to ask whomever made it for you. At least the error is gone now.

  20. KJZRRadio
    Member
    Posted 1 year ago #

    True.

    Thanks for your help.

  21. James
    Happiness Engineer
    Posted 1 year ago #

    You're welcome!

  22. KJZRRadio
    Member
    Posted 1 year ago #

    Come to find out our host provider has a sort of "system restore" for our site.

    One call did it all.

    http://kjzrradio.com

    It's a beautiful thing.

    Now this thread is REALLY resolved.

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic