Support » Fixing WordPress » Warning: Invalid Arguement and I don’t know CSS

  • I have a website that I have taken over managing, with a custom theme made a few years ago. It now runs an error message on the bottom (above the footer) of all wide pages:

    Warning: Invalid argument supplied for foreach() in /customers/c/4/e/ on line 47

    I have been in to the CSS page-full.php editor and it says this on line 47:
    foreach ($meta as 4member) { ?>

    Can anyone advise on how to resolve this? I can provide link to the website in question if required, or a screen shot of the code… Any help gratefully received. While it doesn’t stop the site from working, it is pretty annoying. Thank you in advance. 🙂

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p


    Your tyneside theme seems to be the error.

    Try repairing/updating your theme.

    If you need immediate access to your dashboard, try switching to the unedited default Theme (Twenty Seventeen, etc.) for a moment using FTP/ SFTP , or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding "-old" to the end of the folder name. Alternately, you can remove other themes except the default theme (Twenty Seventeen, etc.). That will force your site to use it.

    Yes, the theme is the error, but I just wondered if there was a quick fix with the code, rather than changing the theme. It occurred with the recent update to wordpress and I am at a loss to know how to fix it.

    I really don’t suggest editing code in the WP editor. Sure, it works… but if you make a mistake, you will get locked out of your site (white screen); and have to use FTP to manually make the corrections anyways.

    I would suggest using any ftp program instead. There are many free programs available.

    Anyways, without seeing any of your code, I would assume the developer mis-typed a “4” instead of a “$”.

    So, this:
    foreach ($meta as 4member) {

    Should be this:
    foreach ($meta as $member) {

    Again, I’m assuming. You may want to backup your site before attempting this repair.

    Thank you for your response, I will have a look, and maybe a try, this weekend once I have everything backed up! 🙂 Will let you know how I get on.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: Invalid Arguement and I don’t know CSS’ is closed to new replies.