Serendipity 1.5-beta1 upgrade

Having trouble installing serendipity?
Post Reply
brr
Regular
Posts: 6
Joined: Sat Feb 14, 2009 10:58 pm
Location: Egersund, Norway
Contact:

Serendipity 1.5-beta1 upgrade

Post by brr »

Hello.

I upgraded my s9y blog from version 1.4.1 to 1.5-beta1. The upgrade gave me the following errors:

Error messages, upgrade:

Deprecated: Function split() is deprecated in D:\web\serendipity\plugins\serendipity_event_statistics\serendipity_event_statistics.php on line 574

Warning: Cannot modify header information - headers already sent by (output started at D:\web\serendipity\plugins\serendipity_event_statistics\serendipity_event_statistics.php:574) in D:\web\serendipity\serendipity_admin.php on line 11

Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in D:\web\serendipity\include\functions_config.inc.php on line 354

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\web\serendipity\plugins\serendipity_event_statistics\serendipity_event_statistics.php:574) in D:\web\serendipity\include\functions_config.inc.php on line 355

After upgrade:

Deprecated: Function split() is deprecated in D:\web\serendipity\plugins\serendipity_event_statistics\serendipity_event_statistics.php on line 574

I removed the statistics plug-in and after doing that I got rid of the error messages. It does not seem that the statistics plug-in is compatible with the new version?

I also got the search bug, but download of a new version of /include/functions_entries.inc.php as described in the blog comment solved that problem.

My system: XAMPP 1.7.2 with Apache 2.2.12, MySQL 5.1.37 and PHP 5.3.0. Computer OS: Windows Vista. Address: http://blogg.brr.no/

All in all the beta version seems to work well!
***
Bjørn Roger Rasmussen, Norway - http://www.brr.no/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 1.5-beta1 upgrade

Post by garvinhicking »

Hi!

Great, thanks a lot for this feedback! Seems that we missed that split() is now a deprecated function. I've just replaced this in all spartacus and internal plugins, and it will be part of the next release.

If you want, just replace "split(" with "explode(" in the serendipity_event_statistics.php file.

Thanks,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
brr
Regular
Posts: 6
Joined: Sat Feb 14, 2009 10:58 pm
Location: Egersund, Norway
Contact:

Re: Serendipity 1.5-beta1 upgrade

Post by brr »

garvinhicking wrote:
If you want, just replace "split(" with "explode(" in the serendipity_event_statistics.php file.

Thanks,
Garvin
Hello!

Thanks for you quick and informative replay!

Did as you said and replaced "split(" with "explode(". Also had to do the change in the file serendipity_plugin_statistics.php

I do not get the error message any more, but I get the following error if I visit the statistics page in the administration part: Warning: Division by zero in D:\web\serendipity\plugins\serendipity_event_statistics\serendipity_event_statistics.php on line 838
***
Bjørn Roger Rasmussen, Norway - http://www.brr.no/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 1.5-beta1 upgrade

Post by garvinhicking »

Hi!

Hm, that requires some more debugging then, it seems that no data is returned properly. I'll get back to you tomorrow, hopefully.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
brr
Regular
Posts: 6
Joined: Sat Feb 14, 2009 10:58 pm
Location: Egersund, Norway
Contact:

Re: Serendipity 1.5-beta1 upgrade

Post by brr »

garvinhicking wrote:Hi!

Hm, that requires some more debugging then, it seems that no data is returned properly. I'll get back to you tomorrow, hopefully.

Regards,
Garvin
It seems that the statistics plugin does not manage to collect and show totally numbers visitors.

The other information shows up. I get information about how many articles written, comments, visitors this month, visitors today and visitors in the blog at the moment. But totally number of visitors does not show up, even if I have said Yes to show this information in the configuration part.

Bjørn Roger Rasmussen, Norway
http://web.brr.no/serendipity/
***
Bjørn Roger Rasmussen, Norway - http://www.brr.no/
brr
Regular
Posts: 6
Joined: Sat Feb 14, 2009 10:58 pm
Location: Egersund, Norway
Contact:

Re: Serendipity 1.5-beta1 upgrade statistics problem

Post by brr »

Hello!

It is still a problem with the snapshot version of s9y. Without any changes only some of the statistics shows up.

Bjørn Roger Rasmussen, Norway, http://blogg.brr.no/
***
Bjørn Roger Rasmussen, Norway - http://www.brr.no/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 1.5-beta1 upgrade statistics problem

Post by garvinhicking »

Hi!

You do not get the error any more, though? Can you explain what is missing, I currently don't properly understand what you might be pointing at...?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
brr
Regular
Posts: 6
Joined: Sat Feb 14, 2009 10:58 pm
Location: Egersund, Norway
Contact:

Re: Serendipity 1.5-beta1 upgrade statistics

Post by brr »

Hello.

Yet another time I removed and installed the statitics part (serendipity_plugin_statistics and serendipity_event_statistics). Now everythig works ok. I get the statistics to show up in my blog and also in the admin part.

After the upgrade to PHP 5.3.0 I hade several issues with my blog - http://blogg.brr.no/. But now with beta 1 and/or snapshot version everyting seems to work ok again.

You can close this case. Thanks for your help!
***
Bjørn Roger Rasmussen, Norway - http://www.brr.no/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 1.5-beta1 upgrade statistics

Post by garvinhicking »

Hi!

Okay, but that's strange though...a reinstallation should not have really changed anything inside the database. But hey, I won't complain if it fixes your problems, I'm quite happy. :-)

Please come back here if you find that it's still not doing, then we need to further investigate it.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
P_W_H
Posts: 3
Joined: Tue Nov 24, 2009 11:28 am

Re: Serendipity 1.5-beta1 upgrade

Post by P_W_H »

Hello,

I have the same problem as described in this thread. I replaced all "split" with "explode" and at least I don't get this error anymore. But I still get the "Warning: Division by zero in D:\Weblog\Server\htdocs\serendipity\plugins\serendipity_event_statistics\serendipity_event_statistics.php on line 838"-Error. I already deleted the "serendipity_event_statistics"-folder and copied it in again but without success.
What can I do?

The system is a Windows XP with XAMPP 1.7.2 and Serendipity 1.5-beta1.
It was a new installation, not an upgrade from an older version.

Kind regards
Peter
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 1.5-beta1 upgrade

Post by garvinhicking »

Hi!

Hm, line 838 only contains a "}" in my version. Do you already have blog entries? The error might go away once you have an entry.

Note that its not an error, just a warning...

Regards,
Garvin
P_W_H wrote:Hello,

I have the same problem as described in this thread. I replaced all "split" with "explode" and at least I don't get this error anymore. But I still get the "Warning: Division by zero in D:\Weblog\Server\htdocs\serendipity\plugins\serendipity_event_statistics\serendipity_event_statistics.php on line 838"-Error. I already deleted the "serendipity_event_statistics"-folder and copied it in again but without success.
What can I do?

The system is a Windows XP with XAMPP 1.7.2 and Serendipity 1.5-beta1.
It was a new installation, not an upgrade from an older version.

Kind regards
Peter
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
P_W_H
Posts: 3
Joined: Tue Nov 24, 2009 11:28 am

Re: Serendipity 1.5-beta1 upgrade

Post by P_W_H »

Hi,

I already have blog entries and my line 838 looks like this:
$maxVisHeigh = 100/$rep[0]*2;

I've attached an screenshot of the warning-messages. The warning is related to the bar chart "Aufrufe auf den Tag bezogen" ('Visits based on day'), which isn't displayed except the x-Axis with the day numbers. The warning is displayed 31-times.

Kind regards
Peter
Attachments
Screenshot Statistics.JPG
Screenshot Statistics.JPG (34.25 KiB) Viewed 8315 times
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Serendipity 1.5-beta1 upgrade

Post by garvinhicking »

Hi!

Can you try the plugin from the recent s9y snapshot (aka beta2?) There the line numbers are different and much of the code has been changed...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
P_W_H
Posts: 3
Joined: Tue Nov 24, 2009 11:28 am

Re: Serendipity 1.5-beta1 upgrade

Post by P_W_H »

Hi,

I've tried the latest snapshot (s9y_200911292342) and now I get the complete statistics. The error-messages are gone and I see the statistics by day.

I didn't see the possibility for downloading snapshots earlier and waited for a new beta, which is coming soon - I hope. ;-)

Thanks for your help.

Kind regards
Peter
Post Reply