When I try to se visitors page it return error instead of page... at admin/visitors. Other pages work fine.

Fatal error: Unsupported operand types in /modules/system/system.module on line 626

Comments

gashev’s picture

What is php, drupal versions?

EllECTRONC’s picture

Drupal 6.12
PHP 5.2.10
PHP register globals Отключено
База данных MySQL 5.1.35
Библиотека Unicode PHP расширение Mbstring
Веб-сервер Apache/2
Ограничение памяти PHP 128M

gashev’s picture

I cannot reproduce this issue.

See http://drupal.org/node/471964. Reinstall visitors module helps you?

gashev’s picture

Status: Active » Closed (fixed)
EllECTRONC’s picture

Status: Closed (fixed) » Active

If I will reinstall visitors module will I lose all my statistic?

P.S.: I do not use Rules module.

gashev’s picture

No,
you lose all statistic after uninstall module (admin/build/modules/uninstall page).

You need only reinstall module.
1) Open admin/build/modules page.
2) Unchecked visitors module.
3) Save configuration button click.
4) Check visitors module.
5) Save configuration button click.

EllECTRONC’s picture

Disable/Enable of the module hasn't helped...

gashev’s picture

What's your previous version visitors module?
Execute sql query: show create table visitors.
What is your modules list?

EllECTRONC’s picture

Version: 6.x-0.17 » 6.x-0.22

Q: What's your previous version visitors module?
A: 6.x-0.17 that's was first

Q: Execute sql query: show create table visitors.
A:

Table 	Create Table
visitors 	CREATE TABLE `visitors` (
 `visitors_id` int(11) NOT NULL auto_increment,
 `visitors_uid` int(11) NOT NULL default '0',
 `visitors_ip` varchar(32) NOT NULL default '',
 `visitors_date_time` int(11) NOT NULL default '0',
 `visitors_url` varchar(255) NOT NULL default '',
 `visitors_referer` varchar(255) NOT NULL default '',
 `visitors_path` varchar(255) NOT NULL default '',
 `visitors_title` varchar(255) NOT NULL default '',
 `visitors_user_agent` varchar(255) NOT NULL default '',
 PRIMARY KEY  (`visitors_id`)
) ENGINE=MyISAM AUTO_INCREMENT=82770 DEFAULT CHARSET=utf8

Q: What is your modules list?
A: (all modules the latest version)
Administration menu
Aggregator
Better Formats
Block
Blog
Book
Cancel User Accounts
Color
Comment
DB Maintenance
Database logging
Devel
External links filter
Filter
Help
ImageAPI
ImageAPI GD2
Invite
Invite Statistics
Locale
Menu
Module filter
Node
PHP filter
Path
Poormanscron
Search
Statistics
Syslog
Taxonomy
Token
Token actions
Trigger
Update status
Upload
User
Views
Views UI
Visitors
WYSIWYG Filter

NOW:
PHP 5.2.6-1+lenny3
DB MySQL 5.0.51a

EllECTRONC’s picture

P.S.: now hasn't error just blank page ../admin/visitors

maartenr’s picture

I get (about) the same message:
Fatal error: Unsupported operand types in /home/profiel/domains/nnn.eu/public_html/modules/system/system.module on line 626
(I changed the domain name in nnn.eu)

Also, when installing the update (I went from 0.20 to 0.22), I had the following error messages:
Update #6021
ALTER TABLE {visitors} CHANGE COLUMN visitors_uid visitors_uid int NOT NULL default 0
ALTER TABLE {visitors} CHANGE COLUMN visitors_date_time visitors_date_time int NOT NULL default 0
ALTER TABLE {visitors} CHANGE COLUMN visitors_url visitors_url varchar(255) NOT NULL default ''
Strangely, these error messages cannot be found in the logs....

Now, before doing all this I had made a complete backup of the website. When I put this backup back on the server, the error message remains, however...???
I am feeling pretty frustrated having done the update....
Any ideas?

gashev’s picture

Can you reproduce error now on last visitors version?

EllECTRONC’s picture

Version: 6.x-0.22 » 6.x-0.24
Status: Active » Closed (fixed)

No. Now all fine.