• Hi,

    After updating wp to v.4.1.1, theme and plugins, this appears on every page of my website:

    Warning: trim() expects parameter 1 to be string, array given in … /wp-includes/link-template.php on line 3049

    Please HELP!

Viewing 15 replies - 1 through 15 (of 17 total)
  • Moderator James Huff

    (@macmanx)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter stesa

    (@stesa)

    Hi,

    Plugins are ok. Child-theme causes the issue, but I need Child-theme to be activated because if I activate parent-theme I lose every custom-style-settings for the site, and the main menu,…
    So, the goal is to keep the child-theme, and to remove that sentence of warning at the beginning of each page.
    On my other host on ‘arvixe’ I had no problem updating 3 sites with same theme. But on ‘godaddy’ host, that sentence appear on the front of every page of the site.
    I already reload everything, didn’t help.

    Any other advice ?

    Thanks

    Moderator James Huff

    (@macmanx)

    Does the parent theme cause the issue too, or just the child theme?

    Thread Starter stesa

    (@stesa)

    just the child-theme

    Moderator James Huff

    (@macmanx)

    What files did you modify in your child theme?

    Thread Starter stesa

    (@stesa)

    nothing.
    I just put as it is, as the author of the theme gave as.
    All changes are made from the wp customizer and custom css.

    Moderator James Huff

    (@macmanx)

    Ok, where did you get this child theme from, and what is it called?

    Thread Starter stesa

    (@stesa)

    From envato, and it is called Total , and Total-child.
    I already write to the author, he took at the notice, but I still did not get any answer from him. I do not like that that sentence stand on the site not only that it is ugly, but for the security reason: there is a complete path where the file is.

    Moderator James Huff

    (@macmanx)

    Ok, as that is a commercial theme, we ask that you please continue with their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations.

    https://themeforest.net/item/total-responsive-multipurpose-wordpress-theme/6339019/support

    Forum volunteers are also not given access to commercial products, so they would not know why your commercial theme is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product.

    Thread Starter stesa

    (@stesa)

    Thanks,

    I came here because, the path of the issue is :
    Warning: … /wp-includes/link-template.php on line 3049
    that is wp file.
    So I thought that somebody can help me with that file/code.
    I did not have same problem before.

    Thread Starter stesa

    (@stesa)

    Here is hole sentence without the username:
    Warning: trim() expects parameter 1 to be string, array given in /home/———–/public_html/——-/wp-includes/link-template.php on line 3049

    Moderator James Huff

    (@macmanx)

    It’s the theme that’s conflicting with the core file, you should *never* edit a core file to just to satisfy a theme, otherwise you’ll cause problems with everything else instead.

    Thread Starter stesa

    (@stesa)

    I understand that.
    But I do not understand why is problem only on this site, not on the other, where is the same wp version 4.1.1 and same theme version.
    Maybe I did something that causes the problem ?

    Moderator James Huff

    (@macmanx)

    I’m not sure, did you edit any core files yourself?

    Just to be sure, try downloading WordPress again and delete then replace your copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter stesa

    (@stesa)

    I only replace all files in the wp-includes with fresh files downloaded directly from the Worpress site, and that did not help. Should I try also with replacing files in the wp-admin and others where is the wp-config ?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Warning: … /wp-includes/link-template.php on line 3049’ is closed to new replies.