Page 1 of 1
static page as frontpage broken
Posted: Mon Aug 13, 2007 5:17 pm
by Xanthouos
This is the second time this happens to me. I have a site set up with a static page as the front page, and all of a sudden, it doesn't work any more.
On this site (
http://www.mundomelhor.net), it's been working with the static frontpage for months now. I don't recall making any changes, but I can't get the static page to be the default front page any more.
Any idea what may be the cause?
The other site that still has this problem is
http://www.familyafrica.com
Thank you for having a look and any insight.
Re: static page as frontpage broken
Posted: Mon Aug 13, 2007 9:11 pm
by garvinhicking
Hi!
Which event plugins do you have installed?
Can you check the serendipity_staticpage DB table and see if any other entries there have the 'startpage' attribute set?
Regards,
Garvin
Re: static page as frontpage broken
Posted: Mon Aug 13, 2007 11:40 pm
by Xanthouos
garvinhicking wrote:Hi!
Which event plugins do you have installed?
@serendipity_categories_plugin:42c66622bd80032656b...
@serendipity_html_nugget_plugin:689fbac04e4e557889...
@serendipity_html_nugget_plugin:c86322e9ddc6db0325...
serendipity_event_adminnotes:1eece7608f12f219c6e44...
serendipity_event_browsercompatibility:a2cf9fa21c7...
serendipity_event_contactform:32db4e77ffe0eddf588c...
serendipity_event_emoticate:39aaaff50ff429d3eddaa1...
serendipity_event_entryproperties:b2df6a1aaa633ae9...
serendipity_event_forgotpassword:763e054afa5ec18c6...
serendipity_event_galleryimage:56a6a8dfdeae7cdb4bd...
serendipity_event_head_nugget:5e2a5d613eab16e91ba6...
serendipity_event_lightbox:adeb3db0130c085a4dbb4ad...
serendipity_event_nl2br:dc18dba77bde51b17d5ee74e3c...
serendipity_event_s9ymarkup:a8501689f39c331ac7c89b...
serendipity_event_spamblock:610cc21679a76356342148...
serendipity_event_spartacus:59f16400bdae553cc917af...
serendipity_event_staticpage:70cec7c55177f82795aed...
serendipity_event_statistics:33d20985886bc97751619...
serendipity_plugin_phpbox:244f56f9af13b105d5ef64d6...
garvinhicking wrote:
Can you check the serendipity_staticpage DB table and see if any other entries there have the 'startpage' attribute set?
Regards,
Garvin
Only the designated static page that I set in the s9y admin panel is marked.
Posted: Tue Aug 14, 2007 12:04 am
by Xanthouos
Ok, one thing I noticed while checking the info in ppmyadmin, was the following error: "More than one INDEX key was created for column `placement`"
I found that one of the plugins was installed twice, which seams to happen sometimes when there are permission errors on the plugin folder, etc.
So after removing the second copy of the plugin, the correct static page would show.
I have the same problem on the
www.familyafrica.com site, and I can't find a second plugin installed, so I don't know where the error is coming from.
....and oddly, the template is screwy the static pages...
anyway, got to look into that tomorrow.

Posted: Tue Aug 14, 2007 9:49 am
by garvinhicking
Hi!
Okay, which plugins do you have installed on the familyafrica site? And did you check that blog's staticpage DB table for duplicate entries?
Regards,
Garvin
Posted: Tue Aug 14, 2007 9:36 pm
by Xanthouos
In phpmyadmin, I'm getting the following error when clicking on the serendipity_plugins table:
"More than one INDEX key was created for column `placement`"
List of Installed Plugins:
serendipity_plugin_phpbox:299270fd6d6e30eadd71aa1b...
@serendipity_categories_plugin:186d9f9f8385e1f7d02...
serendipity_event_entryproperties:b3690e901457881f...
@serendipity_plug_plugin:f88dec111e7d8121459a3e94c...
serendipity_event_s9ymarkup:c1462cf322653478725c26...
serendipity_event_emoticate:0427d0c924a67566e9c762...
serendipity_event_nl2br:f6eda0b14dc7134a9b9683694c...
serendipity_event_spamblock:fd951052782a88c845d99c...
serendipity_event_contactform:7c58a45d4327f3ea016d...
serendipity_event_staticpage:47b602674916b934d7942...
serendipity_event_statistics:923dae6a4312dde0a9b52...
@serendipity_topreferrers_plugin:38fdd0a3eedb6615d...
serendipity_event_externalphp:8c2ba193ef061c85106a...
@serendipity_html_nugget_plugin:667d0daee6de963e4f...
serendipity_event_spartacus:498cbafb7babd540b48d1d...
serendipity_event_google_analytics:6903fbfa07a7743...
There are 4 static pages and 4 entries in the DB table.
Posted: Wed Aug 15, 2007 10:07 am
by garvinhicking
Hi!
You can ignore that phpMyAdmin warning, it is not related to the problem.
Some more questions:
1. What code do you have in your phpbox sidebar plugin?
2. What code do you have in your externalphp event plugin?
3. How do the entries in your staticpage DB table look like? Are there multiple entries for the same page? Are there multiple entries that have the 'Startpage' colum set?
Regards,
Garvin
Posted: Wed Aug 15, 2007 1:58 pm
by Xanthouos
garvinhicking wrote:Hi!
You can ignore that phpMyAdmin warning, it is not related to the problem.
Some more questions:
1. What code do you have in your phpbox sidebar plugin?
It's the random quote function, which I use on several s9y sites.
Code: Select all
include "inc/displayer.php";
echo($display1);
garvinhicking wrote:
2. What code do you have in your externalphp event plugin?
It was some linking service, but it's inactive, and I now removed that plugin.
garvinhicking wrote:
3. How do the entries in your staticpage DB table look like? Are there multiple entries for the same page? Are there multiple entries that have the 'Startpage' colum set?
Regards,
Garvin
Nope, all seams correct to me, have a look:
http://familyafrica.com/serendipity_staticpages.pdf
Posted: Wed Aug 15, 2007 2:13 pm
by garvinhicking
Hi!
The contactform plugin could be the culprit. Move it in the list of plugins to the bottom of the page, after the staticpage plugin.
HTH,
Garvin
Posted: Wed Aug 15, 2007 2:33 pm
by Xanthouos
Amazing!!! That did the trick. Donno if for sure that was the cause, but it's working now.
I'll have to keep a note of this for future reference.
You're the man, Garv.

Thanks again for your time, patience and insightful help.
BTW, would it be something to consider coding it so that the sequence of the listed plugins, doesn't interfere with the "static page as home page" aspect?
PS: All the best with your book! I hope it can come out in English too.

Posted: Wed Aug 15, 2007 2:36 pm
by garvinhicking
Hi!
The problem is that those two plugins use the same method to indicate which one is used. There sadly is no other mechanism for the two plugins to do that indiciation, because they both need to use the same variable. So other than the proper ordering, I don't know of a solution
Best regards,
Garvin
Posted: Thu Aug 16, 2007 6:08 pm
by Xanthouos
Ok, I found another issue. The mundomelhor.net site only works with the "static page as first page" when the Language is set for English in the configuration. When I switch it to "Portuguese Brazilian", it doesn't show the static page as the first page.
Posted: Thu Aug 16, 2007 9:04 pm
by garvinhicking
Hi!
That might be because you only configured the staticpage for the language "English"?
You must configure an independent startpage for each language, I think.
Regards,
Garvin
Posted: Fri Aug 17, 2007 2:37 pm
by Xanthouos
garvinhicking wrote:Hi!
That might be because you only configured the staticpage for the language "English"?
You must configure an independent startpage for each language, I think.
Regards,
Garvin
Bulls eye!!!
Thank you Garvin.
