View Full Version : Upgrade went weird on me.
cory_booth
10-01-2009, 09:21 AM
Just upgraded from 3.20 to 3.21 CMPS.
I have not had a signle issue as of yet until now.
What seems to be happening is my global varibles are not being recognized along with perhaps so other issues.
All my modules are thrown to the left side like the CMPS only has a left column of 100%.
An example, Navbar Avatar, it needs the global navbaravar added in CMPS.
It's there, but it only work when I move to other VB pages. When I come back to adv_index, the avatar disappears. Same goes with a weather plugin I was using and also CYB Donation Bar. All these no longer function as if the global varible was gone... But in admin it is there????
If I move away from Homepage "adv_index" to any other page, I get all my stuff back to normal - unless it is a CMPS page...
Any ideas? What could have changed, file wise from 3.20 to 3.21???
cory_booth
10-01-2009, 09:39 AM
OK I figured out the layout issue.
I installed a new template module and used the tag : adv_portal_stats (since I didn't see it in the list) but I failed to check vbadvanced default templates to see I took the template of a default module.
Ok that is fixed - whew! But...
I am still having the global varible issues. no matter how many times I refresh, dump a cache, or whatever, I can't get the new homepage to pull in the saved Portal Globals?
cory_booth
10-01-2009, 10:05 AM
OK update...
I have even placed the following line in the cmps_index.php file:
global $navbaravatar,$cyb_paypal_donate_link,$cybpaypal_donlist_link,$cybpaypal_donbar, $cybpaypal_donlist_cansee,$cybpp_donbar_period,$cybpp_donbar_total,$cybpp_donbar _goal,$cybpp_donbar_done,$cybpp_donbar_left,$weather,$jwfpss,$plus_mood_welcome_ x;
Still doesn't pull it in...
Any ideas fellas?
Brian
10-01-2009, 10:12 AM
If you're putting your variables in exactly how you've listed them here then the issue is due to your formatting. The dollar sign should be removed from the front, and each variable should be placed on a new line.
navbaravatar
cyb_paypal_donate_link
cybpaypal_donlist_link
etc...
cory_booth
10-01-2009, 10:20 AM
Brian thanks...
However, no I followed the on screen instructions... I do not put a $ in front when I list these variables in the CMPS admin section. I simply was saying I ignored the menu driven option and forced these variables in the actual php file. Still no luck.
Keep in mind, I have had this stuff working on VB for nearly a year now. All I did was upgrade my files from 3.20 to 3.21 and run the install script to ensure template upgrades.
I have went in and verified both "new" templates as well.
I even - just for giggles - check the database to make sure the variables were in the db.
cory_booth
10-01-2009, 10:47 AM
Its like the "hook" for global varibles isn't firing or something. gonna do a debug output and see what happens
cory_booth
10-01-2009, 11:26 AM
OK help me out.
In file, vba_cmps_global.php
Below:
// ##### Fetch vBa Module #####################################################
// Function to print modules and preserve global namespace.
If I add my global variables there... There should be no reason for failure right?
cory_booth
10-01-2009, 11:42 AM
OK, let me restate because I think there could be a bug in the latest release.
I have been using VB for over a year now.
While much has changed a few things on my site have not.
This being four "plugins"
1. Navbar Avatar
2. Navbar Weather
3. VB Moods
4. CYB Donation Bar
All four of these plugins use global variables to place the content on designated pages. I understand how this works and even edited many of the plugins for extra options (like navbar avatar - I added another global varibale for a 20px by 20px avatar)
I have placed all the require global variables in the CMPS Admin Global Output Variables area. This has not changed in nearly a year of site operation.
When I went from 3.2.0 to 3.2.1, I uploaded all the new files and ran the admincp install script. I verified my templates matched or understood the differences between the old and new templates where neccessary.
From that moment forward, I was unable to get "add-on" global variables to render on cmps_index.php pages. No matter the fact I did not change anything on the site from prior.
I tried everything I could think of, but to no avail.
However...
I did add my global variables to vba_cmps_include_top.php near line: 224.
(i.e. global $navbaravatar)
This has reenabled all my content just as it was before.
So the question remains...
Why isn't CMPS capturing the global variables in the AdminCP?
Yes, I do understand they must be without $ and only one per line.
As you can tell from my previous posts, I tried adding the global statement to other files as well. Appears whatever I added was lost or overwritten by include_top.php?
Brian
10-02-2009, 12:11 PM
There's not any reason I'm aware of that the setting would not work to globalize the variables, but if you would like to submit a support ticket via the Members' Area here I'll be glad to take a look at things for you.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.