Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 302659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:07:03+00:00 2026-05-12T07:07:03+00:00

I have found these errors in my error log: [05-Aug-2009 12:57:27] PHP Warning: SimpleXMLElement::__construct()

  • 0

I have found these errors in my error log:

[05-Aug-2009 12:57:27] PHP Warning:  SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: ^ in /home/mojo/public_html/shackupload.php on line 37

The funny thing is I had about 200 of the above in my error log all with the same timestamp! What is going on and why so many?!

The lines in question is this:

if(!(substr($res, 0, 6)=='Failed')){

    $xml = new SimpleXMLElement($res) or die('Error creating a SimpleXML instance');
    $imagelink = (string) $xml->image_link; // This is the image link
    $_SESSION['shack_link'] = $imagelink;
    echo 'done';    
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:07:04+00:00Added an answer on May 12, 2026 at 7:07 am

    The documentation of SimpleXMLElement::__construct says (quoting) :

    Errors/Exceptions

    Produces an E_WARNING error message
    for each error found in the XML data
    and throws an exception if errors were
    detected.

    So, I’d say you tried to load a file that contains XML errors (a non-valid file, for instance).

    And to explain the fact you got 200 errors at the same time : you must have something like 200 errors in your file, as __construct generates one E_WARNING per error in the XML data.

    Logging the XML data to a file, in such situation, might help you finding precisely what caused the warnings… At least if that doesn’t happen often.

    EDIT : BTW, looking at your error_log once in a while is really a good idea ! I don’t see enough people doing that 🙁

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 171k
  • Answers 171k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Install the labelmaker as a printer on the computer. Then,… May 12, 2026 at 2:19 pm
  • Editorial Team
    Editorial Team added an answer It'd help to know what regex engine you're using, as… May 12, 2026 at 2:19 pm
  • Editorial Team
    Editorial Team added an answer According to Wikipedia, "Sealed classes are primarily used to prevent… May 12, 2026 at 2:19 pm

Related Questions

How do I use Windows Sockets 2 in Visual Studio 2008. I'm using precompiled
In SCons, my command generators create ridiculously long command lines. I'd like to be
Since a few days ago, MySQL server on my Windows machine was not successful
I have a VB app that I need to monitor while it is running.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.