Previous Thread
Next Thread
Print Thread
Hop To
#3988 10/02/2006 3:54 PM
Joined: Jun 2006
Posts: 53
M
MMG
Offline
journeyman
journeyman
M Offline
Joined: Jun 2006
Posts: 53
I started playing around with Wrappers today and hit a snag. I was trying to make a few variations and after the second Wrapper things stopped working properly.

If I make a new one then it just replaces the 3rd one, regardless of how many times I try it. If I go into edit the Wrappers the information for anything past the 2nd option is blank. I am unable to delete any of the Wrappers. I'm assuming that it saying Array in the ID for the 4th one is incorrect.
Attachments
145-wrappers.gif

Last edited by Rick; 10/02/2006 5:28 PM.
MMG #3989 10/02/2006 4:16 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, looks like the styles/wrappers.php file is a bit messed up. Will need to track down the cause. For now you'll need to manually fix up the file. If you can post the contents here, then I can show you the changes that need to be made.

Rick #3992 10/02/2006 4:43 PM
Joined: Jun 2006
Posts: 53
M
MMG
Offline
journeyman
journeyman
M Offline
Joined: Jun 2006
Posts: 53
I looked at the file and figured out what needed to be removed. As soon as I manually deleted the last 2 entries then I could add another one with no problem. When I added the 4th one it created the same problem again though.

MMG #3993 10/02/2006 4:47 PM
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 strange. I'm trying to duplicate this. So far I have 23 wrappers on my test site and I can't break it yet wink

Rick #3994 10/02/2006 5:02 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Thats really odd rick, usually you and i are the kings of breakage <3


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Rick #3995 10/02/2006 5:04 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, still not able to duplicate it, but after looking at your screenshot I think I know how to preven it.

Edit admin/doeditwrapper.php. Line 64 looks like this:

if ($wrapper || $wrapper == "0") {

Change that, to this:

if (isset($wrappers[$wrapper])) {

Rick #3998 10/02/2006 5:16 PM
Joined: Jun 2006
Posts: 53
M
MMG
Offline
journeyman
journeyman
M Offline
Joined: Jun 2006
Posts: 53
That fixed it. I made 10 Wrappers and then deleted part of them just to check it and everything worked perfectly. Thanks Rick.

MMG #3999 10/02/2006 5:27 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Great. Thanks for testing the fix.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 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)