Page 1 of 1

XAMMP get_bloginfo error or not

PostPosted: 05. April 2013 00:39
by cesco
Hello to everyone,

I have a copy of a web that works fine but I need to do some changes in it, and so I started making a local copy to start working on it. It's a WP based web that I have not done. I used Xcloner to make the backup and download and install it in XAMMP 1.8.0 for windows 7.

When I launch the web online it works perfectly, but offline I get just a lot of php code. And get this error in the log file:

Code: Select all
[Thu Apr 04 23:56:40.409620 2013] [core:error] [pid 2920:tid 1712] (20024)The given path is misformatted or contained invalid characters: [client ::1:57217] AH00127: Cannot map GET /test/%22.%20get_bloginfo( HTTP/1.1 to file, referer: http://localhost/test/


Another thing that I noted in my tests is that it has to do with the theme used, because if I change it to the default theme it seems to work. I've tried to edit the index.php of the theme just to check using this php sample code, just to check the php and the file access privileges:

Code: Select all
<?php
      /* Initialize some variables using C style comments
           $a - contains a-coefficient
           $b - contains b-coefficient
           $x - value we are evaluating
           $y - result from evaluating equation */
      $a = 1; $b = 2; $x = 1;
      $y = $a * $x + $b;
      if ( $y < 5 )                // C++ style comment, check if y<5
      {
              # Shell style comment, display something when y<5
              echo "Guess what?  y is less than 5!";
      }
 ?>


It worked fine. I'm not a very expert Apache, Xammp, or php/WP developer, so if you have any suggestion where to look I would be more than thankful. I can't paste the code of the index.php as it's not my code but this is the bunch of code that I get when loading the page with this theme selected:


Code: Select all
<?
"Maps", "a" => "Agency" ); $social_link = array( "t" => $item_twitter, "f" => $item_facebook, "v" => $item_vimeo ); //$static_items = array( 't','f','v', 'n', 'm', 'a' ); $static_items = array( 't','v', 'n', 'm', 'a' ); $static_items_order = array(); $static_item_count = 0; $static_max_item = 11; for( $i=0;$i 'post', 'meta_query' => array( array( 'key' => 'custom_relationship', // name of custom field 'value' => '"123"', // matches exaclty "123", not just 123. This prevents a match for "1234" 'compare' => 'LIKE' ) ) )); $q_items = new WP_Query( array( 'post_type' => array( 'vfx', 'animation', 'news' ), 'showposts' => '-1' ) ); if ( $q_items->have_posts() ) { echo '
'; $count = 0; $item_adjacent = false; $show_category = true; while( $q_items->have_posts() ) { $q_items->the_post(); if( $static_items_order[$count] != '' ) { $item_adjacent = small_item_adjacent( $static_items_order, $count ); include( TEMPLATEPATH . '/_/inc/_static-item.php' ); if( $static_items_order[$count+1] != '' ) { $count++; $item_adjacent = small_item_adjacent( $static_items_order, $count ); include( TEMPLATEPATH . '/_/inc/_static-item.php' ); if( $static_items_order[$count+1] != '' ) { $count++; $item_adjacent = small_item_adjacent( $static_items_order, $count ); include( TEMPLATEPATH . '/_/inc/_static-item.php' ); if( $static_items_order[$count+1] != '' ) { $count++; $item_adjacent = small_item_adjacent( $static_items_order, $count ); include( TEMPLATEPATH . '/_/inc/_static-item.php' ); if( $static_items_order[$count+1] != '' ) { $count++; $item_adjacent = small_item_adjacent( $static_items_order, $count ); include( TEMPLATEPATH . '/_/inc/_static-item.php' ); if( $static_items_order[$count+1] != '' ) { $count++; $item_adjacent = small_item_adjacent( $static_items_order, $count ); include( TEMPLATEPATH . '/_/inc/_static-item.php' ); } } } } } $count++; } $itemShow = get_field( 'show_home', $post->ID); if( $itemShow != '1' ) { include (TEMPLATEPATH . '/_/inc/_list-item.php'); $count++; } } echo '
'; } // Reset Post Data wp_reset_postdata(); //wp_reset_query(); ?> "; } if( (strtolower($post->post_title) == 'nosotros') || (strtolower($post->post_title) == 'about us') ) { echo ""; } ?>



Also in Chrome console I get this:

Code: Select all
GET http://localhost/fb/%22.%20get_bloginfo( 403 (Forbidden) localhost:114
Uncaught ReferenceError: jQuery is not defined jquery.royalslider.min.js:834
Uncaught ReferenceError: jQuery is not defined jquery-picture-min.js:18
Uncaught ReferenceError: $ is not defined


Thank you very much in advance for any help or direction that you can give me.