• What does the error in the subject line suggest or mean? It’s currently (and randomly) populating the admin of one of my WordPress installations. I’m not exactly sure what the issue may be. Suggestions?

Viewing 8 replies - 1 through 8 (of 8 total)
  • What’s the rest of the error message? That there could be a few different things, but the first thing that comes to mind is that you’re running on PHP4 and the function simplexml_load_string() doesn’t exist becaues it was added in PHP5.

    The current version of WordPress needs PHP version 5.2.4 as a minimum – WordPress Requirements. You can check what version your server is running by creating a new file called phpinfo.php and have this in it:

    <?php phpinfo ();

    Upload that file to your server, and go to https://yourdomain.com/phpinfo.php and you’ll see all of the server details that you’ll need.

    Thread Starter estevancarlos

    (@estevancarlos)

    It seems I’m using 5.2.6. Here’s a full error I receive. One of many that more or less read like this:

    Warning: simplexml_load_string() [function.simplexml-load-string]: </html> in /home/outofthe/public_html/wp-content/themes/alternatewp/includes/update-notice.php on line 90

    This erros is completely random.

    OK, that’s still not the full error as far as I know. When I see them there’s normally something that says what the error actually is.

    But remember, this is just a warning, not an error. From the file that it’s in, it looks like the update service either can’t connect to a remote server or that it gets a garbage response instead of well-formed XML.

    There’s two options here.

    First, if this isn’t a big worry for you, check your wp-config.php file and look for define(‘WP_DEBUG’, true) and make that value false (without any quote marks). That will stop the warning notices from being displayed.

    Second, if yo uare worreid about it, turn off ALL plugins and use the default theme and then turn on the plugins one-by-one until the error shows up again. That will show you which plugin, or your theme, that is causing that warning to show.

    Thread Starter estevancarlos

    (@estevancarlos)

    Thanks for your help and the clarification. Yeah, these are just warnings. I suppose I’ll just deactivate them. I believe it is the theme and not the plugins in my case. Thanks.

    Thread Starter estevancarlos

    (@estevancarlos)

    Well, this is strange. The debug is already set to false. Also, all the warnings are relating to the same function and same line in code. I’m fine with disabling the warnings. Any other suggestions?

    Thread Starter estevancarlos

    (@estevancarlos)

    I had to add this:

    @ini_set('display_errors',0);

    Hello. I’m having the same problem. Can you please tell me where did you add the line: @ini_set(‘display_errors’,0);

    I add at the theme function.php and it works. Thank you estevancarlos.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Warning: simplexml_load_string() [function.simplexml-load-string]:’ is closed to new replies.