BUG – non-object in wp-settings.php on line 216
-
BUG REPORT
I have a fully working 2.6.3 installation – apart from the flash uploader everything is fine.
On the site homepage I have a simple html/php page, part of which pulls the latest posts and comments from the blog using the standard calls –
`require_once(‘./blog/wp-blog-header.php’);
<?php query_posts(‘showposts=3’); ?>
<?php while (have_posts()) : the_post(); ?>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?>
<?php the_excerpt(); ?>
<?php endwhile;?>`I’ve tried to use effectively the same code to pull the same info into the side bar of an SMF forum installation placed at a peer level in the heirarchy (SMF v1.1.7 (latest)) and keep getting the following error
Fatal error: Call to a member function set_prefix() on a non-object in /home/server-user/public_html/blog/wp-settings.php on line 216
Line 216 of wp-settings.php is –
if ( !defined('WP_LANG_DIR') ) {
plus another 20 lines setting the language directory pathThere is NO language directory in default English installs (in either /wp-content/ or in /wp-includes/) and THAT is what is causing the error call.
Even after I added empty /languages/ folders to those paths, the error persisted.
It is going to persist as long as there in no en.mo file in those folders.
(And more importantly to me – no BRITISH English .mo file in there – British typography requires 2
:nbsp;
after a full stop (only women have periods) and one:nbsp;
after a comma (a Commer is an old make of British light van) – like wot I use when posting in the forums ?? )Gaz
- The topic ‘BUG – non-object in wp-settings.php on line 216’ is closed to new replies.