Post Reply

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry
Topic Summary - Displaying 13 post(s). Click here to show all
Posted by: Dandello
Posted on: Jan 24th, 2024 at 1:48pm
At least you're now up and running.  Smiley and a thumbs up.
Posted by: fd
Posted on: Jan 24th, 2024 at 10:12am
Dandello wrote on Jan 23rd, 2024 at 11:33pm:
For the alleged Paths issue try:
in Yabb.pl find
Code (Perl)
Select All
      push(@INC, "./Modules"); 


just before it add
Code (Perl)
Select All
use lib '.'; 



The use of the '.' to designate the current working directory is no longer automatically added to the @INC list and has to be added in by hard code.


FYI, I had to do this in AdminIndex.pl also.
Posted by: fd
Posted on: Jan 24th, 2024 at 2:32am
Thanks for your assistance Dandello. I hope you get a chance to resurrect this software one day.
Posted by: fd
Posted on: Jan 24th, 2024 at 2:02am
Namecheap have resolved the permission error by doing this:

Quote:
We have installed mod_suexec for Apache to resolve the issue with the permissions since the processes are now running under cPanel user (not a 'nobody' user as previously).


Looks like I am up and running now.
Posted by: fd
Posted on: Jan 24th, 2024 at 12:15am
Dandello wrote on Jan 23rd, 2024 at 11:33pm:
For the alleged Paths issue try:
in Yabb.pl find
Code (Perl)
Select All
      push(@INC, "./Modules"); 


just before it add
Code (Perl)
Select All
use lib '.'; 



The use of the '.' to designate the current working directory is no longer automatically added to the @INC list and has to be added in by hard code.


Thanks. This one fixed the issue with finding paths.pl. It's just the permission denied errors now. I suspect this must be some kind of setting on the server that affects perl accessing files.
Posted by: fd
Posted on: Jan 24th, 2024 at 12:10am
I have fixed a few lines in Extended profiles, so I can view the posts again now, after I change permission. But I am still getting permission denied errors. Is it dangerous to change all permissions to 777? I think I would have to do it to all the files in boards, members, messages and variables. Also, this allows me to reply to existing threads, but not start new ones, so it is probably not a workable solution.
Posted by: Dandello
Posted on: Jan 23rd, 2024 at 11:33pm
For the alleged Paths issue try:
in Yabb.pl find
Code (Perl)
Select All
      push(@INC, "./Modules"); 


just before it add
Code (Perl)
Select All
use lib '.'; 



The use of the '.' to designate the current working directory is no longer automatically added to the @INC list and has to be added in by hard code.
Posted by: fd
Posted on: Jan 23rd, 2024 at 11:21pm
Thanks Dandello.

What am I getting myself into here? Would I be better asking for an older version of perl?
Posted by: Dandello
Posted on: Jan 23rd, 2024 at 11:17pm
This is due to Perl deprecating some iffy code structures.
in ExtendedProfiles.pl find:
Code (Perl)
Select All
                elsif ( $group =~ m/^NoPost\{(\d+)}$/sm ) { 


and make it
Code (Perl)
Select All
                elsif ( $group =~ m/^NoPost\[{](\d+)}$/sm ) { 



As I recall this issue comes up in a number of places in old versions of Yabb. If you see the 'Unescaped left brace in regex is illegal here in regex;' you need to find the line, then find the '{' and change it to '[{]'
Posted by: fd
Posted on: Jan 23rd, 2024 at 10:57pm
That's odd. Yesterday I was able to view a thread where the ctb file permission had been changed to 777. Now when I try to load the same thread, I get this error:

Quote:
Untrapped Error :
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^NoPost{ <-- HERE (\d+)}$/ at ./Sources/ExtendedProfiles.pl line 294. Compilation failed in require at ./Sources/Display.pl line 606.
Posted by: fd
Posted on: Jan 22nd, 2024 at 8:04pm
Thanks for taking a look Dandello. I have attached a bunch of the pl files.
Posted by: Dandello
Posted on: Jan 22nd, 2024 at 2:32pm
Quote:
/home/ozpolit/public_html/forum/YaBB.pl line 42.

BEGIN failed--compilation aborted at /home/ozpolit/public_html/forum/YaBB.pl line 56.



I don't have a copy of YaBB 2.5 on my current machine. Could you post lines 41 to 57 of your YaBB.pl? (or just zip up a copy of your YaBB.pl and attach it here?)
Posted by: fd
Posted on: Jan 22nd, 2024 at 8:27am
Hi, I am switching from hostgator to namecheap and they are having trouble getting the yabb forum up and running. They got the wikis and the php forum running no problem.

The forum is at: ozpolitic - com/forum/YaBB.pl. I am running yabb 2.5.2. The new server is at 162.0.230.155.

They initially had some problems, which they resolved by moving the Paths.pl file into the Modules folder (see quote below). The forum home page now loads OK, so long as you are not logged in. If you are logged in (the login must have transitioned from the old server) you get a partially loaded page with this message: "Unable to open ./Members/***.vars : Permission denied" where *** is the user name.

If you are not logged in, you can navigate to a board, but if you click on a thread you get another error message: "Unable to open ./Messages/1705792099.ctb
Verbose: Permission denied." Namecheap fixed that one by changing the file permission to 777, but I suspect it is a bad idea to go changing all the file permissions.

Any idea what is going on? I checked the file and folder permissions from the installation instructions and they all seem correct, except that a lot of pl files have 755 instead of 644.


Quote:
We have checked Apache error logs and located the following:

Can't locate Paths.pl in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 ./Modules) at /home/ozpolit/public_html/forum/YaBB.pl line 42.

BEGIN failed--compilation aborted at /home/ozpolit/public_html/forum/YaBB.pl line 56.



We have copied Paths.pl from /home/ozpolit/public_html/forum to /home/ozpolit/public_html/forum/Modules and the site became active.