|
|
Joined: Jan 2003
Posts: 87
Member
|
|
Member
Joined: Jan 2003
Posts: 87 |
When I click the " Select a different avatar image," I get the following error: quote:
Undefined subroutine &main::c_u_d_6290_CheckAvatarDir called at CGIPath/ubb_lib_misc.cgi line 403.
I went to the above mentioned file (ubb_lib_misc.cgi) & here's what it says (lines 395-414): quote: [qb]sub avatar_select_menu { %vars_style = &LoadStyleTemplate("transition"); &set_page_elements; &LoadTemplate("public_avatar_select");
if(!&FileExists("$vars_config{NonCGIPath}/Avatars/ot_avatars_lib.js")) { &RequireCode("$vars_config{CGIPath}/cp_upgrade.cgi"); &RequireCode("$vars_config{CGIPath}/cp_upgrade_data.cgi"); &c_u_d_6290_CheckAvatarDir; } # end if
opendir(AVATARS, "$vars_config{NonCGIPath}/Avatars") or die "$! opening Avatars"; my @files = grep(/^[wd_-]+$vars_display{AvatarFileExts}$/, readdir(AVATARS)); closedir(AVATARS); my @avlist = sort { lc($a) cmp lc($b) } @files; my $htmlbits = join('", "', @avlist);
&avatar_select_html($htmlbits, $in{cp}); exit; } # end avatar_select_menu[/qb] Is there something missing or needs to be altered to correct this problem? I didn't start having this problem until yesterday. Thank You 
|
|
|
|
|
Joined: Nov 2001
Posts: 1,703
Moderator / Da Masta
|
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,703 |
Make sure cp_upgrade.cgi and cp_upgrade_data.cgi didn't vanish from the CGI directory somehow, or become corrupted. Also if they're on Unix servers, make sure they're CHMODded to 755. 
|
|
|
|
|
Joined: Jan 2003
Posts: 87
Member
|
|
Member
Joined: Jan 2003
Posts: 87 |
I re-uploaded both backup files, chmod is correct, and cleared cache. But still have problem. Did I mention that this did not occur until I moved to another host server yesterday. All of UBB runs great except the above mentioned. 
|
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
|
Member
Joined: Nov 2001
Posts: 1,080 |
Did you check the path to those files?
|
|
|
|
|
Joined: Jan 2003
Posts: 87
Member
|
|
Member
Joined: Jan 2003
Posts: 87 |
Yes, if you're referring to the paths in the CP. If you mean elsewhere, could you be more specific? What is this ot_avatars_lib.js file? I can't find it on the server nor with my UBB files.
|
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
|
Member
Joined: Nov 2001
Posts: 1,080 |
"ot_avatars_lib.js" should be in your "Avatars" directory in noncgi.
|
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
If the file is not there, then you never completed the upgrade/install process in the first place. Go hit the upgrade button.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
|
Joined: Jan 2003
Posts: 87
Member
|
|
Member
Joined: Jan 2003
Posts: 87 |
quote: If the file is not there, then you never completed the upgrade/install process in the first place. Go hit the upgrade button. That did the trick! Thank You!
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 1424
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 26
|
|
|
|