usermane Posted January 29, 2013 Share Posted January 29, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/273767-error-with-an-imageboard-warning-creating-default-object-from-empty-value-in/ Share on other sites More sharing options...
requinix Posted January 29, 2013 Share Posted January 29, 2013 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? Quote Link to comment https://forums.phpfreaks.com/topic/273767-error-with-an-imageboard-warning-creating-default-object-from-empty-value-in/#findComment-1408862 Share on other sites More sharing options...
usermane Posted January 29, 2013 Author Share Posted January 29, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/273767-error-with-an-imageboard-warning-creating-default-object-from-empty-value-in/#findComment-1408864 Share on other sites More sharing options...
usermane Posted January 29, 2013 Author Share Posted January 29, 2013 And yes, in 09 that line of code doesn't exist. I'll install 09, too bad i already did so many things in in 08, welp. I was blind, thanks for the help. Will update for the results. Quote Link to comment https://forums.phpfreaks.com/topic/273767-error-with-an-imageboard-warning-creating-default-object-from-empty-value-in/#findComment-1408865 Share on other sites More sharing options...
requinix Posted January 29, 2013 Share Posted January 29, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/273767-error-with-an-imageboard-warning-creating-default-object-from-empty-value-in/#findComment-1408866 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.