Jump to content

Recommended Posts

I installed an imageboard (kusaba x) and while i can navigate and make changes in the administrator account i get this message left and right in the screen:

 

"Warning: Creating default object from empty value in /home/username/public_html/lib/gettext/gettext.inc.php on line 154"

 

I checked the file and line 154 is:

$text_domains[$domain]->path = $path;

 

Am posting this on coding section because i assume i must change something in the code.

Will appreciate any kind of help.

That will happen if $text_domains[$domain] is not set or is null.

 

Looking at trunk I don't see that code. Where did you get yours from?

 

http://sourceforge.net/projects/kusabax/files/Kusaba%20X%20v0.8/Kusaba%20X%20v0.8%20Full/

 

But it seems i downloaded v08 instead of v09.

Will look at the specific file for the difference.

It's probably for the better. The v0.8 file has the offending function

/**
 * Sets the path for a domain.
 */
function _bindtextdomain($domain, $path) {
global $text_domains;
// ensure $path ends with a slash
if ($path[strlen($path) - 1] != '/') $path .= '/';
elseif ($path[strlen($path) - 1] != '\\') $path .= '\\';
$text_domains[$domain]->path = $path;
}

but the same problem shows up in other functions too. It seems like it's just bad coding at fault and fixing that could be a bother.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.