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

  • Home
  • SEARCH
  • 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

Related Questions

I am using jQuery to make an AJAX request to a remote endpoint. That
Simple task like make AJAX request , pass one parameter and return result, can
I am using jQuery to make some ajax calls and wonder how people handle
I am using .Net framework 2.0 / jQuery to make an Ajax call to
i'm trying to make my image search with google ajax search i'm using jQuery.
I need to make an AJAX request from a website to a REST web
I'm working at an app which would make a POST ajax request to a
For some reason when I attempt to make a request to an Ajax.net web
I would like to make an ajax call to a different server (same domain
I'm trying to make an ajax call to grab session data to insert into

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.