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 119439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:39:12+00:00 2026-05-11T03:39:12+00:00

I make an AJAX request like so using JQuery: $.ajax({ type: GET, url: getvideo.php,

  • 0

I make an AJAX request like so using JQuery:

$.ajax({   type: 'GET',   url: 'getvideo.php',   data: 'videoid=' + vid, 

I use firebug to tell me what’s going on and it tells me that a 500 internal server error has occurred? Here is part of the script concerned:

$videoid = $_GET['videoid']; $get = new youtubeAPI(); $get->getVideoAPI($videoid);  class youtubeAPI extends Exception {    function getVideoAPI($videoid){      if (isset($videoid)) {        $clientLibraryPath = 'library';       $oldPath = set_include_path(         get_include_path() . PATH_SEPARATOR . $clientLibraryPath       );        require_once 'Zend/Loader.php'; // the Zend dir must be in your include_path 

I use the same AJAX call to other scripts and they are fine. I have used these scripts on another server and it was fine except on the other server the file is named ‘getvideo.php5’ whereas here I named it ‘getvideo.php’ since I have PHP 5.2.6 installed only.

Please help

UPDATE

This is the error:

[Wed Feb 11 20:48:17 2009] [error] [client xx.xx.xxx.xxx] PHP Fatal error: Class ‘DOMDocument’ not found in /var/www/html/library/Zend/Gdata/App.php on line 734, referer: http://xx.xx.xx.xxx/

I hid my IP. At that line:

public static function importString($string, $className='Zend_Gdata_App_Feed') {   // Load the feed as an XML DOMDocument object   @ini_set('track_errors', 1);   $doc = new DOMDocument(); // LINE 734   $success = @$doc->loadXML($string);   @ini_restore('track_errors'); 

But I shouldn’t be playing around with that right? In any case, that class doesn’t exist as a script and doesn’t exist in that script as a class. I AM MAKING USE OF THIS SAME LIBRARY IN MY OTHER SERVER. It is also missing that too??? This is what I downloaded from the Youtube API zip folder.

SOLVED

This was a brand new server and it had minimal PHP installed. I was missing PHP dom functions. A quick install fixed this problem. Thanks for reminding me to look at the logs. I should have tried that first.

yum install php-xml yum install php-xmlrpc 
  • 1 1 Answer
  • 3 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. 2026-05-11T03:39:12+00:00Added an answer on May 11, 2026 at 3:39 am

    Try executing the call manually yourself in your browser (its the same thing) and see what gets returned. If nothing gets returned and you get a 500 internal server error, you need to then review your logs and see whats causing this error to happen.

    Also make sure you are making the ajax call to the proper domain. If you try calling out of your domain the call will fail every time.

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

Sidebar

Ask A Question

Stats

  • Questions 194k
  • Answers 194k
  • 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 Leave the field NULL. Don't use OR, use UNION ALL:… May 12, 2026 at 6:44 pm
  • Editorial Team
    Editorial Team added an answer Just don't do it! For these reasons:- Making a second… May 12, 2026 at 6:44 pm
  • Editorial Team
    Editorial Team added an answer For my current scenerio, I will be using Aspose library… May 12, 2026 at 6:44 pm

Related Questions

I am trying to make it easy form my end users to search through
Does anyone have a elegant way of dealing with errors in ASP.Net MVC? I
JQuery events are annoying me. The thing is that I very often use javascript
I'm implementing a relatively simple autosave system and I'd like to do so using

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.