YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


  HomeHelpLoginRegisterSearch  
 
 
Page Index Toggle Pages: 1
Print
Error message when trying to change templates (Read 2848 times)
Midnight Cowboy
YaBB Newbie
*
Offline



Posts: 37

None
Error message when trying to change templates
Oct 19th, 2008 at 9:43pm
 
Hi. I'm getting this error message when trying to change templates in my User CP (after having changed it in the Admin). It's actually strange because you can see the new template if you enter as a guest but as soon as you try to change it in the user CP it sends that error message.
Do you know what it might be?

Software error:
Can't continue after import errors at Modules/Upload/CGI.pm line 27
BEGIN failed--compilation aborted at Modules/Upload/CGI.pm line 27.

For help, please send mail to the webmaster (or webmaster), giving this error message and the time and date of the error. Content-type: text/html

Software error:
[Sun Oct 19 17:31:46 2008] YaBB.pl: Can't continue after import errors at Modules/Upload/CGI.pm line 27
[Sun Oct 19 17:31:46 2008] YaBB.pl: BEGIN failed--compilation aborted at Modules/Upload/CGI.pm line 27.
Compilation failed in require at ./Sources/Subs.pl line 746.

For help, please send mail to the webmaster (or webmaster), giving this error message and the time and date of the error. Content-type: text/html

Software error:
[Sun Oct 19 17:31:46 2008] YaBB.pl: [Sun Oct 19 17:31:46 2008] YaBB.pl: Can't continue after import errors at Modules/Upload/CGI.pm line 27
[Sun Oct 19 17:31:46 2008] YaBB.pl: [Sun Oct 19 17:31:46 2008] YaBB.pl: BEGIN failed--compilation aborted at Modules/Upload/CGI.pm line 27.
[Sun Oct 19 17:31:46 2008] YaBB.pl: Compilation failed in require at ./Sources/Subs.pl line 746.
Compilation failed in require at /services/webpages/l/i/liguetotal.com/cgi-bin/yabb2/YaBB.pl line 58.

For help, please send mail to the webmaster (or webmaster), giving this error message and the time and date of the error.

Thanks!

P.S. I reuploaded the files listed in the error message and made sure the chmods were correct, but that didn't help
Back to top
 
 
IP Logged
 
Tony Barnett
YaBB Newbie
*
Offline



Posts: 7
Mansfield, Victoria, Australia

None
500 Internal Server Error when posting w YaBB 2.3
Reply #1 - Oct 19th, 2008 at 5:04am
 
Hi,

I have just upgraded from 2.2.3 to 2.3 but encountered a "500 Internal Server Error" when trying to preview or post messages.

I have read the troubleshooting information in the YaBB Codex and narrowed the problem down to Modules/Upload/CGI.pm line 27

To get things working I had to change line 27 from...

use CGI::Util qw(rearrange make_attributes unescape escape expires ebcdic2ascii ascii2ebcdic);

to...

use CGI::Util qw(rearrange make_attributes unescape escape expires);

i.e. I had to remove "ebcdic2ascii" and "ascii2ebcdic" from line 27 in Modules/Upload/CGI.pm.

What are the ramifications of making this change and is there a way I can get things working as intended?

Any information or assistance would be appreciated.
Back to top
 

...
WWW  
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2644
Prien am Chiemsee, Germany

None
Re: 500 Internal Server Error when posting w YaBB 2.3
Reply #2 - Oct 20th, 2008 at 8:36pm
 
ebcdic2ascii is an Apache-specific function which is available only on EBCDIC based operating systems (OS/390, BS2000). It translates the EBCDIC encoded string ebcdic_str to its equivalent ASCII representation (binary safe), and returns the result.

ascii2ebcdic is the inverse of ebcdic2ascii.

If it makes problems remove it. I think everything will work as intended anyway.
Back to top
 

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
 
IP Logged
 
Midnight Cowboy
YaBB Newbie
*
Offline



Posts: 37

None
Re: Error message when trying to change templates
Reply #3 - Oct 19th, 2008 at 11:50pm
 
Wow! It worked, thanks a lot!!!
Back to top
 
 
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2644
Prien am Chiemsee, Germany

None
Re: Error message when trying to change templates
Reply #4 - Oct 20th, 2008 at 8:46pm
 
@ Captain John


You moved this posts here. What do you want me to do?

Shall I remove "ebcdic2ascii" and "ascii2ebcdic" from line 27 in Modules/Upload/CGI.pm?
Back to top
 

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
 
IP Logged
 
Captain John
Global Moderator
Documentation Team
*****
Offline



Posts: 12342
Reno Beach, Ohio USA

None
Re: Error message when trying to change templates
Reply #5 - Oct 20th, 2008 at 10:21pm
 
deti wrote on Oct 20th, 2008 at 8:46pm:
Shall I remove "ebcdic2ascii" and "ascii2ebcdic" from line 27 in Modules/Upload/CGI.pm?


Absolutely NOT .... I am expecting a reason and a fix (whether something wasn't done correctly to cause these errors by the users, or the code is not doing what it is suppose to do) for the problem .
  As you can see in these 2 threads, "Fresh Install, Upgrades" fail if user enables upload avatars or attachments, then tries to modify the profile or post.
  5 users had these symptoms, 4 eliminated that part of the code and were able to modify profiles and post.  I presume, they bypassed something this code does ... and I have no idea the consequence of doing so.
 But 5 users with the same problem .. something not right.

Edited:
deti Quote:
ebcdic2ascii is an Apache-specific function which is available only on EBCDIC based operating systems (OS/390, BS2000). It translates the EBCDIC encoded string ebcdic_str to its equivalent ASCII representation (binary safe), and returns the result.

ascii2ebcdic is the inverse of ebcdic2ascii.


Would this cause problems on WIIs, Windows 2000 or other Servers not Apache=specific ?  Or do check environment to bypass if not ?
Back to top
« Last Edit: Oct 21st, 2008 at 3:22pm by Captain John »  

FAQ's, Errors, Need Info Visit the YaBB Codex
 
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2644
Prien am Chiemsee, Germany

None
Re: Error message when trying to change templates
Reply #6 - Oct 29th, 2008 at 2:31pm
 
I hope this problems will not happen again in next release due to changes like you can read here:
http://www.yabbforum.com/community/YaBB.pl?num=1225154895
Back to top
 

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
 
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2644
Prien am Chiemsee, Germany

None
Error message when trying to change templates
Reply #7 - Oct 29th, 2008 at 2:32pm
 
This Topic was moved here from YaBB 2 - Bugs [Open] by deti.
Back to top
 

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
 
IP Logged
 
Page Index Toggle Pages: 1
Print

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser YaBB Facebook Group Page

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.