Free Tag plugin issue, blank screen.

Creating and modifying plugins.
Post Reply
kirwoodd
Regular
Posts: 6
Joined: Sun Jan 22, 2006 3:06 pm

Free Tag plugin issue, blank screen.

Post by kirwoodd »

when I install the Free Tag plugin, it seems to install fine. I get a screen that says that it downloaded several files and its all good.

But when I go to my home page, its now blank. And in fact, every thing is blank. If I go into the file system and delete the plugin, I am then back. I get the following error in my log:

Code: Select all

[client 192.168.0.1] PHP Parse error:  parse error, unexpected '}' in /var/www/eluma/blog/plugins/serendipity_event_freetag/serendipity_event_freetag.php on line 939, referer: http://blog.w1ley.net/serendipity_admin.php?serendipity[adminModule]=plugins&serendipity[pluginPath]=online_repository&serendipity[install_plugin]=serendipity_event_freetag&serendipity[spartacus_fetch]=event
I am running
mysql 3.23.58
PHP 4.3.9

I know, I know,
Kind of old. :roll: I am doing an upgrade this coming weekend... But is that really the problem? Or will I do an upgrade (for other reasons) and this will still be there?

thanks guys!

p.s. I did a search and saw a VERY similar issue that someone had, but it was a differant line number so I didnt implement it, as the fix recommended fixing code that is differant in my version. :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Free Tag plugin issue, blank screen.

Post by garvinhicking »

Could you please compare the contents of your serendipity_event_freetag.php file with this:

http://cvs.sourceforge.net/viewcvs.py/* ... rev=1.9999

It might be that the file was not properly downloaded...

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/
kirwoodd
Regular
Posts: 6
Joined: Sun Jan 22, 2006 3:06 pm

Post by kirwoodd »

thanks for the quick reply.

That file is identical to mine. BUT, just to be paranoid, I replaced the one on my system with your file, same problem.
:?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, but the file downloaded frmo that location doesn't create any parse error here on my system...I'm quite at a loss, there shouldn't be any parse errors...

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/
Guest

Post by Guest »

well,
THAT'S a bummer. :(

Its a new install, so I guess that I will delete the installation and try again. I wonder if its an interaction with some other plugin? I installed several at once. AND I have NO blog entries, I bet you have entries. 8) So thats another diifferance, maybe I will uninstall the plugin, add an entry, then reinstall the free tag plugin.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Garvin once said:
Blank pages are usually a good indicator for a PHP coredump or Fatal Error
Now, he was talking about templates, but still...

Garvin also says:
PHP errors are usually logged in a different file. That can be configured in the php.ini file, section "display_errors" and "error_log". You should also be able to see the current settings with a simple <?php phpinfo(); ?> script.
So, can you check your PHP error log? You may need to talk to your administrator.
Judebert
---
Website | Wishlist | PayPal
kirwoodd
Regular
Posts: 6
Joined: Sun Jan 22, 2006 3:06 pm

Post by kirwoodd »

Judebert.
you are 100% correct.
the data that I posted in my first message came from my php error log.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Can you try to call the PHP file via your browser, like

Code: Select all

http://yourblog/plugins/serendipity_event_freetag/serendipity_event_freetag.php
and see if you get any parse errors? Because doing so on my install with the recent freetag plugin creates no parse errors. Are you really absolutely sure that the file on your server is the SAME as the php file on SourceForge?

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/
kirwoodd
Regular
Posts: 6
Joined: Sun Jan 22, 2006 3:06 pm

Post by kirwoodd »

Garvin, when I go to that URL I still get a blank page and the following in my php error log:

Code: Select all

[client 192.168.0.1] PHP Parse error:  parse error, unexpected '}' in /var/www/eluma/blog/plugins/serendipity_event_freetag/serendipity_event_freetag.php on line 939
and I copied the file from the link you sent again, just to be paranoid, same thing. :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Can you paste the code you see in line 939 of your plugin file?

Mine looks like this around that line:

Code: Select all

    function displayEditEntries($q) {
        global $serendipity;

        $r = serendipity_db_query($q);

        if ($r === true) {
            echo PLUGIN_EVENT_FREETAG_MANAGE_UNTAGGED_NONE;
        } else if (!is_array($r)) {
            echo $r;
        } else {
            foreach ($r as $row) {
?>
                <p style="margin: 5px; border: 1px dotted #000; padding: 3px;">
                    <a href="<?php echo FREETAG_EDITENTRY_URL; echo $row['id'];?>"><img style="border: 0px;" src="<?php echo serendipity_getTemplateFile('admin/img/edit.png'); ?>"></a>
                    <?php echo $row['title']; ?>
                </p>
<?php
            }
        }
    }
Your PHP is complaining about the last "}" somehow, but it matches the correct number of opening and closing { } in my file.

Maybe you can mail me your plugin file? It must be something with your file...

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/
kirwoodd
Regular
Posts: 6
Joined: Sun Jan 22, 2006 3:06 pm

Post by kirwoodd »

Garvin,
My file looks like the same as what you posted.

I am going to completey remove and re-install, if that doesnt fix it, I will email you my file. give me half hour. :)
kirwoodd
Regular
Posts: 6
Joined: Sun Jan 22, 2006 3:06 pm

Post by kirwoodd »

ok,
reinstalled, same error

Code: Select all

[client 192.168.0.1] PHP Parse error:  parse error, unexpected '}' in /var/www/eluma/blog/plugins/serendipity_event_freetag/serendipity_event_freetag.php on line 939, referer: http://blog.w1ley.net/serendipity_admin.php?serendipity[adminModule]=plugins&serendipity[pluginPath]=online_repository&serendipity[install_plugin]=serendipity_event_freetag&serendipity[spartacus_fetch]=event

I will email you the file.
Post Reply