Page 1 of 1

Free Tag plugin issue, blank screen.

Posted: Sun Jan 22, 2006 3:16 pm
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. :(

Re: Free Tag plugin issue, blank screen.

Posted: Sun Jan 22, 2006 3:20 pm
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

Posted: Sun Jan 22, 2006 3:32 pm
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.
:?

Posted: Sun Jan 22, 2006 5:10 pm
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

Posted: Mon Jan 23, 2006 12:07 am
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.

Posted: Mon Jan 23, 2006 3:37 am
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.

Posted: Mon Jan 23, 2006 12:51 pm
by kirwoodd
Judebert.
you are 100% correct.
the data that I posted in my first message came from my php error log.

Posted: Mon Jan 23, 2006 1:21 pm
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

Posted: Mon Jan 23, 2006 2:51 pm
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. :(

Posted: Mon Jan 23, 2006 2:57 pm
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

Posted: Tue Jan 24, 2006 9:57 pm
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. :)

Posted: Tue Jan 24, 2006 10:26 pm
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.