• This is my first trip into self-hosting a wordpress site on my own hardware and I am encountering some issues with the admin pages and struggling to track down the cause of the errors.
    Background
    Raspberry Pi 4 with Rasbian buster installed
    Wordpress 5.7.2
    Php 7.3
    Caddy Web server
    Mariadb 10.3.9

    Problem is with some not all admin pages giving 500 page errors.

    Site is functional, login prompt appears and does log in however dashboard gives 500 error.
    Some admin pages are ok however, I can list pages, posts, users add new users but many of the admin pages do have the error.

    excerpt from caddy log when trying to log in shows

    Jul 12 16:44:42 web1 caddy[1496]: {"level":"error","ts":1626104682.5060937,"logger":"http.log.error.lo
    g0","msg":"template: /wp-admin/index.php:465: function \"data\" not defined","request":{"remote_addr":
    "62.3.69.91:60842","proto":"HTTP/1.1","method":"GET","host":"the4016.com","uri":"/wp-admin/","headers"
    :{"Connection":["keep-alive"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Mode":["navigate"],"User-Ag
    ent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.44
    72.124 Safari/537.36 Edg/91.0.864.67"],"Sec-Ch-Ua":["\" Not;A Brand\";v=\"99\", \"Microsoft Edge\";v=\
    "91\", \"Chromium\";v=\"91\""],"Sec-Ch-Ua-Mobile":["?0"],"Referer":["https://the4016.com/"],"Accept-En
    coding":["gzip, deflate, br"],"Cookie":["wordpress_sec_c7805485dfbc56411683e5ae2d88430b=tmb40%7C162627
    2120%7CrS6De4QDi4nd6fUFyfAlawb0PHqNJwIdNFejyojN0dt%7C1a2bb7149726d66fd470feacabe64d3c7f499bd1947345480
    8f3520ff22c6cc2; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_c7805485dfbc56411683e5ae2d
    88430b=tmb40%7C1626272120%7CrS6De4QDi4nd6fUFyfAlawb0PHqNJwIdNFejyojN0dt%7C174c08ea3e774461a655512a97bd
    c3228f0f3b24c4c371153e3b62fa8da8c22d; wp-settings-time-1=1626101004"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Accept-Language":["en-GB,en;q=0.9,en-US;q=0.8"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"http/1.1","proto_mutual":true,"server_name":"the4016.com"}},"duration":0.14822989,"status":500,"err

    Any pointers welcome on how to resolve the issue would be appreciated.

    • This topic was modified 4 years, 11 months ago by tmb4016.
    • This topic was modified 4 years, 11 months ago by tmb4016.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you create a new function? The server is returning this:

    function \"data\" not defined"

    Thread Starter tmb4016

    (@tmb4016)

    There are no new functions. It is as installed. No plugins and the theme is the default twenty twenty one.

    Caddy Web server

    It could be related to the server then. Is there a reason you cannot use apache?

    Thread Starter tmb4016

    (@tmb4016)

    I prefer caddy because of the simple ssl, auto-renew on the certificates and the reverse proxy as well as the fact the point of the exercise was to install this configuration.

    Other people have wordpress served by caddy by all accounts. Issue I have now is it seems to be pointing purely to a wordpress issue rather than php or caddy server error.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Issues with Dashboard’ is closed to new replies.