1
dejadingo
[FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/27 16:52

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


Here are fixes to two bugs I found in modules/system/xoops_config.php

1) Preferences >> Meta Tags and Footer
Select options for Meta Rating are corrupt.

replace
line 678
Quote:
$modversion['config'][38]['options'] = array("_MD_AM_METAOGEN" => "general", "_MD_AM_METAO14YRS" => "14 years", "_MD_AM_METAOREST" => "restricted", "_MD_AM_METAOMAT", "mature");

with
Quote:
$modversion['config'][38]['options'] = array("_MD_AM_METAOGEN" => "general", "_MD_AM_METAO14YRS" => "14 years", "_MD_AM_METAOREST" => "restricted", "_MD_AM_METAOMAT" => "mature");


2) Modules >> Extended Profiles >> Fields : umode [Edit]
Select options for Default are empty.
- also -
kernel/object.php line 344 unserialize() offset 0 of 20

replace
line 199
Quote:
$modversion['profile']['field'][1]['options'] = array('nest'=>_NESTED, 'flat'=>_FLAT, 'thread'=>_THREADED);

with
Quote:
$modversion['profile']['field'][1]['options'] = array(_NESTED => 'nest', _FLAT => 'flat', _THREADED => 'thread');

2
Herko
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/27 17:27

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1



3
svaha
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/27 19:33

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Where can I change these things in a running system?

4
msdana
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/27 21:02

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


Maybe because it's Monday, and I don't function well on Mondays, but I don't seem to have the file xoops_config.php. (I'm running 2.2.4)

Any ideas??

[EDIT] I found these in modules/system/xoops_version.php.
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

5
svaha
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/27 22:06

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Haha, found them now and changed.

The first change I found at line 687 and not 678



[edit] It's still empty, must I change the kernel/object.php too, and if so, what must I change?

6
dejadingo
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/28 2:10

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


Aargh! Sorry, it _is_ Monday, and I've been at this all weekend. The file is, in fact, xoops_version.php and the line numbers are 199 and 687
I can't even manage to copy my own notes!

Submitted to Patch Tracker.

7
dejadingo
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/28 2:19

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


To fix these problems on a running system, you will probably need to manually update the database values, or at least remove the relevant rows from the database so updating the system module can install your changes from the updated xoops_version.php file. If the options are already in the database, updating the system module does not change them.

See this thread for database changes to the "umode" values.

8
svaha
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/28 16:42

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Thank you, I had to insert it manually :
Quote:
a:3:{s:4:"nest";s:6:"Nested";s:4:"flat";s:4:"Flat";s:6:"thread";s:8:"Threaded";}
in the umode field, and then first in admin general preferences set the default value, then the selection box showed up in the extended profile.

9
Quest
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/28 17:30

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Okay guys-you all are talking Greek again. No-I'm not sure it is even Greek to me.

Not sure what to do. I am running 2.2.4 so if there needs to be a fix can someone explain it in one post as a step by step instruction? Please...

The reason I ask this is because I am relatively new to XOOPS too, know very little about php etc. And all the jumping back and forth is making me deeeeeeeezy!

Kudos to the finder of the problem and their work to solve it. Thanks!

Quest

10
svaha
Re: [FIX] xoops_config.php errors in Xoops2.2.3/2.2.4
  • 2006/2/28 20:37

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Quote:

Quest wrote:
Okay guys-you all are talking Greek again. No-I'm not sure it is even Greek to me.

Not sure what to do. I am running 2.2.4 so if there needs to be a fix can someone explain it in one post as a step by step instruction? Please...

The reason I ask this is because I am relatively new to XOOPS too, know very little about php etc. And all the jumping back and forth is making me deeeeeeeezy!

Kudos to the finder of the problem and their work to solve it. Thanks!

Quest


With phpadmin :
Select te user_profile_field in your database.
Choose option : browse
Now you can see see a field with the fieldname : umode
Select this field and choose action : edit

Now you can see (beneath) : field_options
Insert in the box (on the right) the following :
Quote:
a:3:{s:4:"nest";s:6:"Nested";s:4:"flat";s:4:"Flat";s:6:"thread";s:8:"Threaded";}

Then choose : go (or something) to save what you have changed.

Maybe you must first set in admin general preferences the default option you prefer, before you can see it in the extended profile.

Hope this helps

Login

Who's Online

291 user(s) are online (205 user(s) are browsing Support Forums)


Members: 0


Guests: 291


more...

Donat-O-Meter

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

Latest GitHub Commits