PDA


View Full Version : No Template? No Module? What is my problem?


Laserboy
05-21-2007, 06:17 PM
Update to vBadvanced 3.0 is failed. :( I see no modules and my default Battlefield template is gone. What is my problem and how can i insolve it?

Check: http://www.battlefieldcommunity.nl/cmps_index.php

Thanks.

Laserboy
05-21-2007, 07:15 PM
Issue is insolve: Admin CP --> vBa CMPS --> Default Settings --> vBadvanced CMPS Options --> Main Options --> Process PHP File Modules Within A Function: No.

Brian
05-21-2007, 07:31 PM
If it's any consolation, that option was *supposed* to be turned off by default if upgrading from v2.x, and turned on for a new install. After seeing your post and going back through the code though, I must not have been thinking when I added that part to the install file. I have updated the package here though so that anyone upgrading for the first time should not have that problem.

xtumen
05-21-2007, 08:14 PM
Issue is insolve: Admin CP --> vBa CMPS --> Default Settings --> vBadvanced CMPS Options --> Main Options --> Process PHP File Modules Within A Function: No.

After upgrade I saw a working page once, then everything somehow broke:

All modules are disabled, none can be added to pages. Since "Custom Page Content" module is disabled, all pages are disabled. Option "Active" is ON in all modules.

And the path in the quote above is gone. No such setting anywhere. In "Admin CP --> vBa CMPS --> Default Settings --> vBadvanced CMPS Options -->" I see "Default setings / vBadvanced Global Settings, Style options", "Module options". That's it.

If you choose "Show all settings", somewhere deep below you get "Warning: max() [function.max]: Array must contain atleast one element in /includes/vba_cmps_adminfunctions.php on line 700"

xtumen
05-21-2007, 08:24 PM
Please tell where in the database this option (Process PHP File Modules Within A Function: ) can be switched off? What is the table and the field?

Out of the three settings groups

adv_global
adv_portal_style
adv_portal_main

I only see the first two in AdminCP

Brian
05-21-2007, 08:42 PM
After upgrade I saw a working page once, then everything somehow broke:

All modules are disabled, none can be added to pages. Since "Custom Page Content" module is disabled, all pages are disabled.
How exactly do you mean they're disabled? You did see the parts in the announcement that mention that all module positioning options have been moved to the "Edit Pages" link since you can now move and disable modules on a per-page basis, right?
Under the "Default Settings" link, you should also see a "Main Options" group. It's the 'adv_portal_main' setting group from the list you've posted, so I don't see any way it could be missing if you have that entry in the database. That's where you'll find the "Process PHP File Modules Within A Function" setting.

xtumen
05-21-2007, 08:52 PM
Under the "Default Settings" link, you should also see a "Main Options" group. It's the 'adv_portal_main' setting group from the list you've posted, so I don't see any way it could be missing if you have that entry in the database. That's where you'll find the "Process PHP File Modules Within A Function" setting.

Now I see the option (and it's "on" by default) and the option group where I expected it to see - but after I reinstalled the whole thing, killing all my pages and modules. Somehow I didn't find the option to repeat upgrade.

"Modules Enabled" section in all pages was absolutely empty, without the three columns. In the list of modules there is an option to add a module to pages. All pages were inactive when I tried to add modules to pages. Upgrade went totally awry. Reinstalling helped, but ruined my tomorrow.

Brian
05-21-2007, 08:59 PM
That's the first report I've heard of any problems like that with the columns... Had you added any hacks or otherwise changed anything to do with the layout, or anything similar? Or did you perhaps not upload the new admincp/vba_cmps_admin.php file and save your settings using the old admin files? Those are about the only scenarios I can think of that would have any chance of causing a problem like that.
Do you have a recent backup of your database? If so, I could probably assist you with restoring that and then re-upgrading.

xtumen
05-21-2007, 09:08 PM
That's the first report I've heard of any problems like that with the columns... Had you added any hacks or otherwise changed anything to do with the layout, or anything similar? Or did you perhaps not upload the new admincp/vba_cmps_admin.php file and save your settings using the old admin files? Those are about the only scenarios I can think of that would have any chance of causing a problem like that.
Do you have a recent backup of your database? If so, I could probably assist you with restoring that and then re-upgrading.

It's OK, there are some new posts since backup. I'll recreate pages.

I saw the magic option before it disapeared (it was on), and one page was working fine before all of them suddenly switched off. Some unprobable combination of switches and clicks did it, I guess.

xtumen
05-21-2007, 09:13 PM
If it's any consolation, that option was *supposed* to be turned off by default if upgrading from v2.x, and turned on for a new install. After seeing your post and going back through the code though, I must not have been thinking when I added that part to the install file. I have updated the package here though so that anyone upgrading for the first time should not have that problem.

I uninstalled and then installed - should it be now turned on or off?

Brian
05-22-2007, 12:50 PM
It should be on by default with a new install. I don't think that had anything to do with your problem though. The one error that you posted could only happen if all of the column names were removed from the "Location List" setting. Unless you physically removed them, then you were still running an old version of the vba_cmps_admin.php file and saved your settings at some point, thus removing your columns. If you then saved a page afterwards, that would have hosed the modules on that page as well since there were no columns for them to be associated with.