not sure why but when i add youtube video link in the youtube custom field i get a 500 Internal Server Error when trying to view the listing. any ideas ?

Created: July 12, 2013 at 3:21 am
  • In: DirectoryPress
  • Started by: Anonymous
  • 3 members left 6 comments
  • Last reply from: Mark FailMark Fail

  • Anonymous
    July 12, 2013 at 3:28 am

    something to do in this function causes it to happen
    $embedCode->getEmbedCode($PPT->GetListingCustom($post->ID, ‘youtube’));

  • Anonymous
    July 12, 2013 at 3:37 am

    narrowed it down to this line in the Youtube class

    $this->_feed = (Object) simplexml_load_file( $this->_feed_url );

    commented it out
    the page worked
    uncommented the line
    doesnt work again

  • Anonymous
    July 12, 2013 at 3:59 am

    the page randomly sometimes works with the video other times it just gives the 500 Internal Server Error.

    if i comment out that line it works all the time but no there will be no video for the page

  • Mark Fail
    Mark Fail
    July 12, 2013 at 6:17 am

    i would guess your hosting setup doesnt support simplexml_load_file so it causes a 500 error.

    contact your hosting to ensure they suport the PHP function simplexml_load_file

  • Anonymous
    July 12, 2013 at 10:04 pm

    you can use a very good plugin of Richard Bonk.

  • Mark Fail
    Mark Fail
    July 13, 2013 at 1:58 am


Viewing 7 posts - 1 through 7 (of 7 total)