Page 1 of 1

Just upgraded to v0.9 but layout affected

Posted: Thu Nov 03, 2005 2:33 pm
by aacircle
Hello all,

Have just upgraded to v0.9 by copying all the files over the current version. I noticed 3 strange things:

1. If I click on an entry, the entry is not within the screen. Then if I refresh the entry, it then moves all within the screen.
2. When I login to the admin account and click "configure plugins", I get the following message:

Fatal error: Cannot redeclare serendipity_fetchtrackbacks() (previously declared in /home/httpd/html/aacircle/blog/include/functions_smarty.inc.php:5) in /home/httpd/html/aacircle/blog/include/functions_trackbacks.inc.php on line 5

3. If I click on Manage Groups, I get the following:

Warning: Invalid argument supplied for foreach() in /home/httpd/html/aacircle/blog/include/admin/groups.inc.php on line 54

Does anyone know where I've gone wrong?

Thanks for any support you can provide.

Re: Just upgraded to v0.9 but layout affected

Posted: Thu Nov 03, 2005 2:36 pm
by garvinhicking
This sounds as if you transfered two identical files? Check if the mentioned files in your error message are identical; they shouldn't!

About problem #1, maybe this is related. I must admit I don't understand what exactly you mean and how what looks :)

Regards,
Garvin

Posted: Thu Nov 03, 2005 2:46 pm
by aacircle
Oh... re problem 1, just go to www.aacircle.com.au/blog and then click on any entry. You will see the entry is not within the screen but goes off the screen. If I delete ALL files (not database files of course) in our blog and recopy over v.9, will the upgrade run automatically? Would this be safe?

Posted: Thu Nov 03, 2005 2:52 pm
by garvinhicking
Hm, on my Firefox the entry looks perfectly allright!

About upgrading: Just extract the s9y release file over your existing directory, overwriting all files. That should give you all proper files. Check your FTP client or SSH console (whatever you're using to copy the files) for any write/permission errors.

The only files you need to conserve in your s9y (apart from the DB) is:

.htaccess
serendipity_config_local.inc.php
/uploads/*

Plus any plugins you installed.

Best regards,
Garvin

Posted: Thu Nov 03, 2005 3:00 pm
by aacircle
On my Firefox, when I go to www.aacircle.com.au/blog everything looks fine. However, when I click on an article, the sidebars and entries are pushed out and big white gaps. So then if I click refresh, it then pops all back into place.

I've just tried with Internet Explorer, and this prob didn't occur in exporer.

Ok, I've re-copied over the files in the include directory. It did solve some of the problems. Ie. I can now click on Confgure Plugins when logged in.

The remaining prob is when I click on Manage Groups. I get the error:

Warning: Invalid argument supplied for foreach() in /home/httpd/html/aacircle/blog/include/admin/groups.inc.php on line 54

Posted: Thu Nov 03, 2005 3:04 pm
by garvinhicking
I cannot reproduce your problem. But Google Adsense is known to cause such trouble. Temporarily deactivate your javascript to see if that is the cause.
The remaining prob is when I click on Manage Groups. I get the error:

Warning: Invalid argument supplied for foreach() in /home/httpd/html/aacircle/blog/include/admin/groups.inc.php on line 54
It seems that your user is not a member of any group. How did you exactly perform the serendipity upgrade?

Did you see an upgrader message telling you that SQL files need to be executed? You need to see and execute that one to properly upgrade.

You can peroform the upgrade once again by just editing your serendipity_config_local.inc.php and set the versionInstalled string to the version you had running previously (i.e. 0.8.5). Then go to your blog again, and it should re-execute the upgrade steps again.

If your local file is not editable, execute this PHP:

Code: Select all

<?php
chmod('serendipity_config_local.inc.php', 0777);
?>
Regards,
Garvin

Posted: Thu Nov 03, 2005 3:17 pm
by aacircle
I re-upgraded by changing the version number to 0.8.5 as per your suggestion. I then got the warning that the SQL files need updating. I agreed like I did before and then the next screen shows many errors.

Calling serendipity_buildPermalinks ...
Calling serendipity_addDefaultGroups ...
We detected some errors while running some diagnostics on your entered information:

-

CREATE TABLE serendipity_permalinks (
permalink varchar(255) not null default '',
entry_id int(10) unsigned not null default '0',
type varchar(200) not null default '',
data text
);

/ Table 'serendipity_permalinks' already exists

CREATE INDEX pl_idx ON serendipity_permalinks (permalink);

/ Access denied for user: 'aacircle@localhost' to database 'aacircle'

CREATE INDEX ple_idx ON serendipity_permalinks (entry_id);

/ Access denied for user: 'aacircle@localhost' to database 'aacircle'

CREATE INDEX plt_idx ON serendipity_permalinks (type);

/ Access denied for user: 'aacircle@localhost' to database 'aacircle'

CREATE INDEX plcomb_idx ON serendipity_permalinks (permalink, type);


etc.....

Then at the bottom of the screen is:

Your Serendipity installation is now upgraded to version 0.9

Posted: Thu Nov 03, 2005 3:22 pm
by aacircle
Now after I log in, all links in the admin area work. Manage groups, plugins etc.

Was the above red warnings anything to be alarmed about?

Now I just have to see why the entries are thown out of allignment.

Posted: Thu Nov 03, 2005 3:30 pm
by garvinhicking
The red warnings above can be ignored, they just tell you of already existing tables. So all should be well now.

Good luck with the entry-formatting! :)

Regards,
Garvin

Posted: Thu Nov 03, 2005 3:34 pm
by aacircle
Thanks Garvin for your help. I did remove Adsense but this didn't fix the problem. May be just by Firefox.

Are you sure that when you go to www.aacircle.com.au/blog and click on an entry, it's nicely placed? Because mine is only nicely placed after I refresh that particular entry.

Cheers!

Posted: Thu Nov 03, 2005 3:35 pm
by garvinhicking
Hi!

Yeah, I'm absolutely sure:

http://img89.imageshack.us/my.php?image ... 1100ji.png
http://img89.imageshack.us/my.php?image ... 1369lc.png

that's how it looks like immediately, without any refreshing or popping around.

Regards,
Garvin

Posted: Thu Nov 03, 2005 3:39 pm
by aacircle
Thank you Garvin! You are too quick. Am going to your PayPal account now! ;)

Posted: Thu Nov 03, 2005 5:06 pm
by garvinhicking
Wow, thanks a lot for your Paypal donation! I'm humbled! :-)

Best regards,
Garvin

Posted: Thu Nov 03, 2005 11:49 pm
by aacircle
I think you deserved it after the great support you put in and not only for my question, but everyone's question. Keep up the good work Garvin and have a good weekend. :lol: