• I’m getting the following error on my dashboard:

    Warning: realpath() expects parameter 1 to be a valid path, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1658

    Warning: strlen() expects parameter 1 to be string, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1661

    Warning: ltrim() expects parameter 1 to be string, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1688

    Warning: realpath() expects parameter 1 to be a valid path, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1658

    Warning: strlen() expects parameter 1 to be string, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1661

    Warning: ltrim() expects parameter 1 to be string, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1688

    Warning: realpath() expects parameter 1 to be a valid path, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1658

    Warning: strlen() expects parameter 1 to be string, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1661

    Warning: ltrim() expects parameter 1 to be string, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1688

    Warning: realpath() expects parameter 1 to be a valid path, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1658

    Warning: strlen() expects parameter 1 to be string, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1661

    Warning: ltrim() expects parameter 1 to be string, array given in /home4/foodgymt/public_html/wp-includes/functions.php on line 1688

    It’s also showing on my website: https://www.foodgymtraining.com

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Possibly a bad plugin or theme. Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading all files & folders – except the wp-content folder and wp-config.php & root .htaccess files – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Thread Starter prakhar236

    (@prakhar236)

    Thank you for your help, esmi.

    I don’t know how to re upload all the files. Can you tell me how to do that?

    Thanks in advance!

    Hi Prakhar236,

    It is not error. It’s Warning.
    You can hide using following line add in your wp-config.php file located in your website server root.

    define( ‘WP_DEBUG’, false );

    Thread Starter prakhar236

    (@prakhar236)

    Thanks for your reply Ketan.

    I entered the line and saved it but it still shows the warnings. ??

    @prakhar236: Did you try the first three steps?

    You can re-upload the core WordPress files using FTP or whatever file management application your host provides. That latter will, almost certainly, be a lot slower and more cumbersome but you won’t need to download and install any software on your computer to carry out the re-upload

    Thread Starter prakhar236

    (@prakhar236)

    @esmi: Yes, I did. It did not work.

    I’m going to re-upload the files but I can’t find root .htaccess files as you mentioned. Do you know where to find them?

    Thanks, esmi.

    If you are using an FTP client, it’s probably hiding .htaccess files by default. In theory, this shouldn’t matter right now as you want to avoid deleting this file and you can’t delete what you can’t see. Longer term, you’d need to dig into the settings/preferences for your FTP software and ensure that it is configured to show all files.

    If you are using your hosts’ file management application, you probably won’t be able to change any settings but again, what you can’t see, you can’t delete. Many hosts offer a completely separate application for managing .htaccess files.

    Thread Starter prakhar236

    (@prakhar236)

    Will re-uploading delete the current website data?

    Thread Starter prakhar236

    (@prakhar236)

    Also, I’m trying to login through FileZilla but it’s giving 503 error saying that it could not authenticate.

    I entered my website: foodgymtraining.com as host and my username and password of hosting.

    Thread Starter prakhar236

    (@prakhar236)

    So I reached out bluehost regarding the issue and they said that I need to delete the caching code in .htaccess file. I have found the file but I’m not sure what to delete. Any idea?

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error on Dashboard’ is closed to new replies.