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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:44:39+00:00 2026-05-29T20:44:39+00:00

I have encountered a very strange problem in using jQuery load() . I used

  • 0

I have encountered a very strange problem in using jQuery load(). I used it to load a php file in a div container. It’s working fine on my localhost but on the server it does not load the php file and instead gives

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

I don’t know why is this happening. My jQuery code is:

//ADD THE Description TO THE HOLDER
infofield.append('<div id="'+opt.style+' description" class="'+opt.style+' description">'+item.data('desc')+'</div>');

// ATTACHED the comments to the LIGHTBOX
$('.description').load('gallery_comments.php?id='+id+'&pic='+imgsrc+'&a'+ab); 

Is there a server issue? Using on localhost with WAMP server and testing cross browser compatibility it runs in all browsers, even in IE8. Can any one help?

update ** just used chrome and found out one bug in Uncaught ReferenceError: $ is not defined in line 9 and line 9 code is

   $(function() {  
  $('div.viewgp').hide(); 
   $('.slidegp').click(function() { 
  $('.viewgp').fadeToggle(200); 
  }); 
  });
  • 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-29T20:44:40+00:00Added an answer on May 29, 2026 at 8:44 pm

    You say you can access gallery_comments.php directly, but with what query string parameters? Are you sure that you use the same ones which are appended via the values of id, imgsrc, and ab in the following line?

    $('.description').load('gallery_comments.php?id='+id+'&pic='+imgsrc+'&a'+ab); 
    

    Try the following changes to determine exactly what you’re trying to load, and navigate directly to the url that comes to your console or alert box:

    var url = 'gallery_comments.php?id='+id+'&pic='+imgsrc+'&a'+ab;
    console.log(url); // or alert(url);
    $('.description').load(url);
    

    If I wanted to play psychic debugging, these would be my first two guesses:

    • one of the parameters is required server side, but is null / empty / undefined in your javascript
    • There is an attempt to access a resource that is accessible on your localhost environment but not on the remote server environment
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have encountered a very strange problem. The jquery slideshow in the below webpage
We have encountered a very strange class not found problem in our web app
I have just encountered very strange problem - my GWT app hosted on Google
i have encountered a very strange issue: i use json.dump to write a file
I have encountered a very strange issue. Whenever I use the .NET membership provider
I have encountered a problem i cannot find a solution. I am using a
I have encountered something very strange, simple WPF application <Window x:Class=ListBoxSelection.MainWindow xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=MainWindow
I have encountered a very strange thing today : I have an app installed
I have encountered a very strange bug in Firefox. I have a javascript function
I have encountered a very weird behavior while using SimpleDateFormat for parsing a string

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.