Previous Thread
Next Thread
Print Thread
Rate Thread
#180788 02/23/2003 11:29 AM
Joined: Jan 2003
Posts: 87
Member
Member
Offline
Joined: Jan 2003
Posts: 87
When I click the "Select a different avatar image," I get the following error:
Quote
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 help

Sponsored Links
#180789 02/23/2003 1:24 PM
Joined: Nov 2001
Posts: 1,703
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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. smile

#180790 02/23/2003 4:38 PM
Joined: Jan 2003
Posts: 87
Member
Member
Offline
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.

help

#180791 02/23/2003 8:42 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Did you check the path to those files?

#180792 02/23/2003 9:53 PM
Joined: Jan 2003
Posts: 87
Member
Member
Offline
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.

Sponsored Links
#180793 02/23/2003 10:07 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
"ot_avatars_lib.js" should be in your "Avatars" directory in noncgi.

#180794 02/24/2003 1:08 AM
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.
#180795 02/24/2003 12:52 PM
Joined: Jan 2003
Posts: 87
Member
Member
Offline
Joined: Jan 2003
Posts: 87
Quote
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!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1424
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 26
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)