1
kutovoy
2.2.3a->2.2.4 update bug
  • 2006/5/23 10:19

  • kutovoy

  • Just popping in

  • Posts: 17

  • Since: 2005/7/11


Updated site via xoops-2.2.3a-to-2.2.4.zip patch, downloaded from official XOOPS page. Got:

atal error: Cannot use object of type XoopsProfileField as array in x:\xxx\www.example.com\kernel\profilefield.php on line 355

$fields_data = array();
foreach($_fields_data as $key => $field_data){
for($i=0;$i<count($keys);$i++){
$fields_data[$key][$keys[$i]] = $field_data[$i]; // 355 line
}
}

tried to fix myself, looks like working, but not sure that there will not spawn some profile fields problem at future:

$fields_data = array();
foreach($_fields_data as $key => $field_data){
for($i=0;$i<count($keys);$i++){
if ( is_object($field_data) )
$fields_data[$key][$keys[$i]]=$field_data->vars[$keys[$i]];
else
$fields_data[$key][$keys[$i]] = $field_data[$i]; // old 355 line
}
}

question... What I did wrong when updated (simply copied with overwriting files from html folder from path to my site folder, I can't access any page - nither login nor admin panel) site or is my fix correct/where to download official fix.

Thanks in advance!

p.s.
PHP v: 5.1.2
MySQL Server v: 5.0.16-nt
MySQL Client API v: 5.0.16


2
jensclas
Re: 2.2.3a->2.2.4 update bug

Could be your MySQL:

read this
To install XOOPS for the first time you'll need to have the minimum following server software pre-installed on your host webserver:
* HTTP Server (Apache or IIS) "Note, XOOPS only officially supports Apache"
* PHP 4.1.0 and higher (4.1.x recommended) Note: PHP 5 may cause a problem until the next release. If you have PHP5 please check the Install#Troubleshooting note.
* MySQL Database 3.23.XX or 4.xx (XOOPS will have compatability with MySQL 5 in the next release.)

from xoopsdocs

3
kutovoy
Re: 2.2.3a->2.2.4 update bug
  • 2006/5/23 19:40

  • kutovoy

  • Just popping in

  • Posts: 17

  • Since: 2005/7/11


Quote:

jensclas wrote:
Could be your MySQL:

read this
To install XOOPS for the first time you'll need to have the minimum following server software pre-installed on your host webserver:
* HTTP Server (Apache or IIS) "Note, XOOPS only officially supports Apache"
* PHP 4.1.0 and higher (4.1.x recommended) Note: PHP 5 may cause a problem until the next release. If you have PHP5 please check the Install#Troubleshooting note.
* MySQL Database 3.23.XX or 4.xx (XOOPS will have compatability with MySQL 5 in the next release.)

from xoopsdocs


Big thanks for at least reply, but I'm working in PHP/MySQL more than 2 years, wrote 2 XOOPS modules and numerous set of commercial modules for other CMS ;) and surely I known about that... But problem exists :)

Still awaiting of any ideas...

Best regards,
Nickolay.

4
kutovoy
Re: 2.2.3a->2.2.4 update bug
  • 2006/5/23 19:43

  • kutovoy

  • Just popping in

  • Posts: 17

  • Since: 2005/7/11


And topic title is - update bug... Surely I have working site 2.2.3a...before...and broken after applying patch... (backups helped to restore it ;)

5
kutovoy
Re: 2.2.3a->2.2.4 update bug
  • 2006/5/31 10:07

  • kutovoy

  • Just popping in

  • Posts: 17

  • Since: 2005/7/11


BTW, I created some custom profile fields when on 2.2.3a... M.b. update script simply skip conversion of them...

Any ideas?..

Login

Who's Online

178 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

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

Latest GitHub Commits