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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:44:25+00:00 2026-05-23T14:44:25+00:00

I am trying to render content generated by a php file in [jQuery Colorbox][1]

  • 0

I am trying to render content generated by a php file in [jQuery Colorbox][1] through AJAX in my WordPress site. The PHP resides on the same server in the same domain. It works perfect when I run it on localhost but it’s not working on the server.

Here is the link to my site – http://shabdcreatives.com/portfolio

The links themselves are not invalid, for example the following link works fine on its own:

http://shabdcreatives.com/wp-content/plugins/catgrid/includes/CatGridPost.php?ID=33

I just won’t open inside the colorbox.

Also the php file I am trying to load is just a fragment and DOES NOT CONTAIN any <html> or <body> tags.

I tried the colorbox support group but no replies from them yet

This is the code in the CatGridPost.php file that i am calling in the colorbox..
i tried calling a plain text file too… it returned no error.. but the colorbox did not show its contents either

require_once("../../../../wp-blog-header.php");
$thepost = get_post($_GET["ID"]);
$thecontent = $thepost->post_content;
$thetitle = $thepost->post_title;
$thelink = get_permalink($_GET["ID"]);
?>
<div id="cg-post-container">
<div id="cg-post-title">
    <a href="<?php echo $thelink; ?>"><?php echo $thetitle; ?></a>
</div>
<div id="cg-post-content">  
        <?php echo $thecontent; ?>
</div>          

  • 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-23T14:44:26+00:00Added an answer on May 23, 2026 at 2:44 pm

    Hi it can be a server issue with mod_security , i had a similar issue with one of my clients server i disabled the mod_security and it solved the issue.

    But i was not getting an 404 error.

    here is the link for reference http://drupal.org/node/370651

    Also try changing the file permission : /wp-content/plugins/catgrid/includes/CatGridPost.php

    If it is a WordPress whydont you try the inbuilt Ajax function of wordpress

    http://codex.wordpress.org/AJAX_in_Plugins

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

Sidebar

Related Questions

I'm trying to get an RSpec controller spec to pass. It's almost identical to
I am a new WPF user and I am trying to wrap my head
I am working on my first Android Application. What I am trying to do
I'm trying to port the old HTML.Image helper, that I'm sure everyone has used
I'm making a small project to learn Django, and i'm having some problems trying
I am trying to learn django framework with few sample applications. Currently, I am
I have written an OpenGL game and I want to allow remote playing of
Okay so I've set up and tested a nice little WCF service. The client
Related to: django - pisa : adding images to PDF output I've got a
I'm just learning Python & Django. (Thanks to everyone who contributes here -- it's

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.