Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
Just downloaded and tried the ubbthreads demo. I think I set everything up okay, ran createtable.php, which set up all tables, then when I followed the link to newuser.php I got this nasty error message :

Fatal error: Failed opening required 'languages/D/newuser.php' (include_path='.:/usr/share/php') in /home/e-smith/files/ibays/lhf/html/forums/ubb/newuser.php on line 23

anybody guess where I (it?) went wrong?

Anonymous
Unregistered
Anonymous
Unregistered
where did that D come from in the include path? shouldn't it have been 'english'?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Did you have the PERL version setup before? This is a pretty common error that we finally figured out where it was coming from. Everyone that has received that error has had to close their browser and clear out their cookies. After that, the error went away.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
cheers Rick, I deleted my cookies and it seems to work fine now. I had a previous php demo version installed which must have caused the problem.

Anonymous
Unregistered
Anonymous
Unregistered
regarding this problem I had - is it best to use sessions then to avoid this happening, instead of cookies?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
This has never seemed to be an issue once the cookies were cleared. Cookies are best if you don't want your users to have to login each time they visit your forums.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
This problem is occuring quite a lot as I've been testing out the forum.

I am worried that the end users will be experiencing the same difficulties. I don't want to be sending out emails telling people to delete cookies.

I would still prefer to use cookies to sessions though, so if there if is a way to stop this error I would be interested to know. If not then I will switch over to using sessions instead.

Anonymous
Unregistered
Anonymous
Unregistered
xlabphil, I'm having the same problem you are.

I already posted a new thread, before reading yours.

I'm getting the folling error on several different pages within UBB Threads, Ver. 5.4.6 running on an Apache Webserver with PHP Ver 4.04:
Fatal error: Failed opening required 'languages/D/logout.php' (include_path='.:/usr/share/php') in /var/www/html/www/ubb_threads/logout.php on line 26

The problem seems to linked with a cookie that my webserver writes as soon as any user logs onto my intranet site. I can delete the cookie and then UBB Threads works fine, however I can't view anything else in the intranet site.

I've tried changing Ubb Threads from cookies to sessions. That didn't help either.

I did not have this problem with the demo version of UBB Threads......

I know I can hard code the path to the language file, but I shouldn't have to do that.

Any suggestions?

Thanks,

Jamie

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I'll post this here for anyone having this problem. If this works, let me know and I will make it a part of the default distribution.

About line 47 of ubbt.inc.php you will see a line that looks like this:
</font><blockquote><font size="1" face="">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> if (!$w3t_language){
$w3t_language = $config[language];
}[/code]</blockquote><font size="" face="">Change that, to this:
</font><blockquote><font size="1" face="">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> if ( (!$w3t_language) &#0124;&#0124; (!ereg("[a-z]",$w3t_language)) ) {
$w3t_language = $config[language];
}[/code]</blockquote><font size="" face="">-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
er.. can't seem to find the file ubbt.inc.php in my demo install... is this file missing?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
You might be using an old demo from before the switch. If you don't have ubbt.inc.php then it is probably main.inc.php.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
This fix now works partially for me, but still I must delete cookies WITHOUT restarting the browser as I did it before.

I mean, I can go directly to the forum form a fresh start but if I leave it and try again later on from another website the error message apppears again. Then I delete the cookies and I recover the forum access with no need to close the browser and open it again as I did previously to change the code. (Mac OS, IE 5, NS 4.7 and 2 diferent machines and IP)

Regards,
Niko

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
What error are you getting specifically when you come back from another website? This code forces it to ignore the types of errors you were getting before.

-------------------
Rick Baker
UBBThreads developer

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, if anyone is having this problem I'd like to get it solved once and for all <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" /> Unfortunately I cannot duplicate it and it only seems to be happening to a few users. So, if I can get someone to make the following changes it should let me know exactly what is going on.

You just need to open your ubbt.inc.php file, about line 50 it looks like this:
</font><blockquote><font size="1" face="">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> include("$thispath/languages/$w3t_language/generic.php");[/code]</blockquote><font size="" face="">Right after that, add this:
</font><blockquote><font size="1" face="">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">echo "<b>DEBUG: w3t_language is: $w3t_language, Cookie is: $HTTP_COOKIE_VARS[w3t_language], lang[THIS_FILE] is $lang[THIS_FILE]<b>";[/code]</blockquote><font size="" face="">After making these changes go ahead and bring up one of the regular scripts like ubbthreads.php. Right at the top of the screen it is going to print out some information. If you can post that info back here I should be able to find out what's going on.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Rick,

Here are the results to your test script:

DEBUG: w3t_language is: english, Cookie is: , lang[THIS_FILE] is D
Fatal error: Failed opening required 'languages/D/ubbthreads.php' (include_path='') in /var/www/html/www/ubb_threads/ubbthreads.php on line 27


Also, I've already switched to using sessions instead of cookies. Unfortunately, for whatever reason, I am unable to edit my php.ini file.... I used gnome rpm to install apache, php and mysql. I've uninstalled and re-installed everything but still, I am unable to alter php.ini and make those changes reflect in php. Even if I were to alter php.ini, I still have to be able to write cookies because I require users to log into a Post-Nuke portal on my intranet. I use cookies as a means of validation.

Thanks for your help,

Jami

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, try this. Go ahead and take out the debug code, and in it's place add this:

$lang['THIS_FILE'] = $w3t_language;

Let me know if this solves your problem.

As for your php.ini problems, maybe you have 2 copies and are working on the wrong one? You can try to run 'locate php.ini' to see all files that have this name on your system.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Rick,

I tried you suggestion, same problem....

I then uncommented out your test and this is what displayed:

DEBUG: w3t_language is: english, Cookie is: , lang[THIS_FILE] is e
Fatal error: Failed opening required 'languages/e/ubbthreads.php' (include_path='') in /var/www/html/www/ubb_threads/ubbthreads.php on line 27

Do you think I should just hard code the correct path everywhere, for english.

Jamie

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, is there any chance of my getting access to the server? I'd hate for you to have to hand edit the files because it would be a pain if you ever wanted to upgrade.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Rick,

Do you use webex? Maybee you could webex to my pc, and I will have a telnet open to the web server?

Jamie

Anonymous
Unregistered
Anonymous
Unregistered
if webex doesn't work, I can possibly give you an ssh connection.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Have never even heard of webex <img border="0" title="" alt="[Embarrassed]" src="images/icons/blush.gif" /> I can ssh however if that is a possibility.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
rick,

You will not be able to see the forum from outside this company. I could set you up to telnet in but I don't think there's any way for you to see the forum on the intranet.....

I think that's going to be a problem.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm. Ok, maybe if I can telnet/ssh in and make a few changes then I'll just have you try and see if it is working ok? Would that work?

-------------------
Rick Baker
UBBThreads developer

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If that's not feasible, then I've got a plan to rework the required language files for the next release. If you wanted to just get your forums going until then you could do what you were thinking earlier of just hardcoding english in place of $lang[THIS_FILE] in the scripts.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
rick,

I tried hard coding and some wierd stuff happens. I end up with The letters "F" for links at the top of ubbthreads.php. The links should read Main Index, Search, New User, etc...

wether I use sessions or cookies ubb threads looks for a language cookie. Isn't there a place in your code where I can tell it to not look for that cookie? The only language I need to use is english.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
What's weird is this isn't actually coming from the cookie. It looks like somehow the $lang[] array is getting manipulated. $lang[THIS_FILE] was getting changed to 'D' now it looks like things like $lang['MAIN_INDEX'] is getting changed as well. Is your intranet doing anything with a string/array named lang?

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
yes, as a matter of fact it is. There is another cookie that is being written by the Post-Nuke portal that has "lang english in it."

Maybee I can find out where it's coming from and change lang to language???

Anonymous
Unregistered
Anonymous
Unregistered
I altered the cookie to write language instead of lang.

So far, the portal and the forum seem to be working.

Thanks for your help!

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, let me know if you have any further problems with this. If it continues to work I think maybe I should modify the $lang array to something ubbthreads specific like $ubbt_lang.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
I've been quiet on this thread recently because after buying the full version and installing it on a different server the problem never occurred again.

Reading the threads here, I looked at the cookies in my browser and there were several other cookies named 'lang'. I think they all came from different copies of phpmyadmin and they all evaluated to 'en'. phpmyadmin is not installed on the server with the full version I bought.

Do you think this was the cause of the problem.?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yep, I think that is probably it. Which would explain alot! Thank you very much for pointing this out. The vast majority of users have phpMyAdmin installed and this would cause problems. So, what I think I'll do is change the $lang array to something like $ubbt_lang.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
This has come up a lot, and it's pretty clear that you've now identified the culprit, because deleting the language cookie in my browser immediately solved the problem. My question is about continuing use.

Right now I'm solving the problem by using different browsers for the forum and for phpMyAdmin, but that's a pretty clunky solution over the long term. Is there something more elegant that I can be do until you issue a bug fix?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
That's probably going to be the best way to do it for now. For 5.5 I've renamed the lang array and all references to it to something that will be specific to ubbthreads ($ubbt_lang). This should get rid of this problem once and for all.

-------------------
Rick Baker
UBBThreads developer


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (ahmed047), 624 guests, and 172 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)