[theme-reviewers] Child theme language files
Dion Hulse (dd32)
wordpress at dd32.id.au
Wed Sep 21 07:06:31 UTC 2011
The first thing you need to do, is figure out what function is being called.
Looking at line 4339 in
http://core.trac.wordpress.org/browser/branches/3.2/wp-includes/functions.phpwe
find it belongs to get_file_data().
get_file_data() itself is called from a few places in core, but in none of
those should it be passing a url.
To me, it sounds like you might have something calling get_theme_data() with
a url to the stylesheet rather than a path to the stylesheet.
This probably isn't the best location to get PHP help or Theme PHP
Development tips however, I'd suggest the wp-hackers mailing list myself.
Cheers
Dion Hulse / @dd32
On 21 September 2011 16:52, Ryan Frankel <ryan.frankel at gmail.com> wrote:
> Hello all,
>
> I have had someone who downloaded my theme today report that they are
> getting the following error:
>
> Warning: fopen() [function.fopen]: http:// wrapper is disabled in the
> server configuration by allow_url_fopen=0 in
> /usr/www/users/derrph/subdomains/support/wp-includes/functions.php on line
> 4339
>
> While it seems reasonably common to get this error this user is the only
> one to ever get it. I have checked with other users an on my own server and
> we all have allow_url_fopen=0 in our php.ini. Obviously, it is a bad idea
> to change this to =1.
>
> My question is this….how do I go about finding the actual line that caused
> this issue? My functions.php looks like below….
>
> <?php
> //**********************************************************************
> // Includes for Functionality of Swamp Bugs - Please do not edit!
> //**********************************************************************
> if ( ! isset( $content_width ) ) $content_width = 1100;
> load_theme_textdomain( 'swamp-bugs', TEMPLATEPATH.'/languages' );
>
> $basics_path = TEMPLATEPATH . '/basics.php';
> $upgrade_path = TEMPLATEPATH . '/upgrade.php';
> require_once($basics_path);
> if (file_exists($upgrade_path)) {
> require_once($upgrade_path);
> }
> //**********************************************************************
> // END Includes - You can place your custom functions below.
> //**********************************************************************
> ?>
>
> Ryan
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110921/75860c28/attachment.htm>
More information about the theme-reviewers
mailing list