'Empty delimiter' warning on main blog page

Creating and modifying plugins.
Post Reply
tjnoff
Regular
Posts: 7
Joined: Sun May 14, 2006 1:04 am

'Empty delimiter' warning on main blog page

Post by tjnoff »

I have the following error at the bottom of our main blog page (after the bottom blog entry):
Warning: stristr(): Empty delimiter. in /var/www/html/blog/include/functions.inc.php on line 403
Here's a snippet of code from the file in question:

Code: Select all

function serendipity_track_referrer($entry = 0) {
    global $serendipity;
 
    if (isset($_SERVER['HTTP_REFERER'])) {
        if (stristr($_SERVER['HTTP_REFERER'], $serendipity['baseURL']) !== false) {   //this is line 403
            return;
        }
Looks like maybe I don't have a value entered in the configuration somewhere, maybe? Any advice?

Thanks - Jay
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 'Empty delimiter' warning on main blog page

Post by garvinhicking »

Hi!

Which PHP version are you using? And what didyou enter as the "URL of the Blog" configuration directive in the serendipity config?

It might also be that your $_SERVER['HTTP_REFERER'] string isnot set;which webserverand version do you use?

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/
tjnoff
Regular
Posts: 7
Joined: Sun May 14, 2006 1:04 am

Re: 'Empty delimiter' warning on main blog page

Post by tjnoff »

Sorry for the delayed response... been away at a conference.

Some additional information on this: I had the main page set to display 15 entries at a time. When clicking the Next Page link to see the next 15 entries, the browser goes right back to the first page, but adds the aforementioned error to the bottom of the page. I've seen something similar in the forums here, and it appeared to be a Paths issue.

We're running Serendipity 0.8-beta2 and PHP 4.3.2 in a Redhat Linux environment. I inherited this from a former employee. We're using the blog for the same purpose as last year (annual Executive MBA class trip), so all settings are as he left them.

The only values set up in Configuration/Paths are:

Full path: /var/www/html/blog/
Relative template path: templates/
Index file: index.php

The blog's URL is http://firebird.business.wm.edu/blog/. I've tried using this for the 'URL to blog' setting and have tried entering /serendipity/ for the 'Relative path' setting, but these have resulted in various problems, such as the blog site losing its 'style' settings (text only) or the 'Back to Weblog' link on the admin page not taking me back to the main blog page.

I have root access to the Linux box and know where all of the directories are. I think the entries I've tried probably have had faulty format/syntax (leading / vs. no leading /).

Any thoughts?

Thanks - Jay
garvinhicking wrote:Hi!

Which PHP version are you using? And what didyou enter as the "URL of the Blog" configuration directive in the serendipity config?

It might also be that your $_SERVER['HTTP_REFERER'] string isnot set;which webserverand version do you use?

regards,
garvin
tjnoff
Regular
Posts: 7
Joined: Sun May 14, 2006 1:04 am

Post by tjnoff »

I've put http://firebird.business.wm.edu/blog/ in as the 'URL to blog' entry, which eliminates the aforementioned error on the bottom of the page, but clicking 'next page' still goes nowhere (same first 15 entries). The 'next page' link points to http://firebird.business.wm.edu/blog/in ... g//P2.html . Looks like a mangled URL?

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

Post by garvinhicking »

Hi!

In fact I'm afraid you'Re facing a bug of the outdated Serendipity you're using. You should please upgrade to a recent, security-risk free version of Serendipity like 0.9.1 or 1.0-beta3.

There, it should work if you enter those path settings:

Full path: /var/www/html/blog/
Upload path: uploads/
Relative path: /blog/
Relative template path: templates/
Relative upload path: uploads/
URL to blog: http://firebird.business.wm.edu/blog/

HTH,
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/
Post Reply