11
Quest
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/28 21:36

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Thanks svaha much appreciated mate. However-what about the top post of this thread? Do those changes need to be made too? In the xoops_config.php? (hanging head and shaking it side to side ever so slightly) And where exactly cuz I'm slow sometimes, don't mean to be... Thanks for any help in clearing this up.
If I do make this change and someone said it wasn't a permanent fix, then what?

Quest

12
dejadingo
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/3/2 1:23

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


The fixes in this post are the permanent fixes.

However, they will only take effect if you make the changes to the file before you install your XOOPS system. Once you have a running system, you can only get the changes to take effect by making changes to the database.

It's possible to remove all the traces of the umode field and its options from the several database tables, and then update the system module to pick up the changes from the new xoops_version.php file. However, the easiest thing to do here is to directly update the options array in the database as svaha describes.

If you want to make similar changes for the meta_rating options it's probably easier to delete the traces and then update the system module. The places to delete are:

table: xoops_config
row: conf_name = 'meta_rating'

table: xoops_configoption
rows: all rows with '_MD_AM_METAxxxxx' in either confop_name or confop_value

To delete a single row in phpMyAdmin, simply press the red X in the row. To delete multiple rows, check the box next to the row and then click the red X at the bottom of the form (Delete all checked rows).

After the rows are deleted, update the System module and you should see the following somewhere in the update log that displays :

Quote:

Config meta_rating added to the database.
Config option added. Name: _MD_AM_METAOGEN Value: general
Config option added. Name: _MD_AM_METAO14YRS Value: 14 years
Config option added. Name: _MD_AM_METAOREST Value: restricted
Config option added. Name: _MD_AM_METAOMAT Value: mature


Hope this clears things up.

13
bumbum
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/3/2 20:28

  • bumbum

  • Just popping in

  • Posts: 99

  • Since: 2004/10/18


What bugs do these patches fix?
The reason I ask is because I've recently had to downgrade to 2.0.13 because of persistant 'no valid security token found' error messages.
The downgrade was 'slightly' sucessful but I'm dealing with other problems now and if these patches solve the 2.2 releases issues then I'm there!

14
dejadingo
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/3/7 22:43

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


These fixes address the following error :
Quote:

Notice [PHP]: unserialize() [function.unserialize]: Error at offset 0 of 20 bytes in file ...\kernel\object.php line 344

which is the result of incorrect select options coded in [xoops]/modules/system/xoops_version.php

I haven't had "security token" problems with XOOPS 2.2.4, but then I'm not yet running it on my live sites, and I mostly use custom modules so I don't have lots of experience with the common portal-site modules.

15
bumbum
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/3/8 21:51

  • bumbum

  • Just popping in

  • Posts: 99

  • Since: 2004/10/18


Thanks dejadingo for getting back to me

16
irmtfan
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/9/12 3:23

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Thank you it fix umode.
but i have same problem with uorder.
anyone look at that?

17
fosterm
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2007/3/11 5:30

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


Nothing to see here. Move along all you lookylous


Login

Who's Online

53 user(s) are online (29 user(s) are browsing Support Forums)


Members: 0


Guests: 53


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits