Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 05:11 pm EST
Geeklog Forums
Static Pages 1.2
Anonymous
Anonymous
I upgraded to Static Pages 1.2
Everything went fine to install. But I now have a problem: When I edit a page and select [delete] It brings me to a "Page not found". But the page is deleted from the database. In the address bar of the browser I can see that part of the path is missing. It shows:
http://mysitename.com/admin/plugins/staticpages/index.php
When it should be:
http://mysitename.com/gl/ph/admin/plugins/staticpages/index.php
/gl/ph are missing in the address. These are the geeklog and public_html I renamed when I installed Geeklog.
It always worked fine till this SP1.2 upgrade.
And also I look at the TAR file, there is certainly a mixe up in the file. Some folders appear twice. The admin folder for example is repeated under the templates folder. The two "index.php" files are not the same size...
Something wrong isn't it ?
Thanks
7
7
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I guess the plugin doesn't use the $_CONF['site_admin_url'] variable but instead assumes that the admin directory is always in $_CONF['public_html']/admin
I haven't looked at the tarfile of this plugin, but the original static pages plugin does have an admin folder in the templates directory. It also has two index.php files - one for the public_html/staticpages directory and one for the admin/plugins/staticpages directory. If you find that in the tarball, then that it how it's supposed to be.
bye, Dirk
5
5
Quote
Status: offline
tomw
Forum User
Full Member
Registered: 08/12/02
Posts: 300
Got me again, something I missed when I was going over the code before the plugin. The redirect after the delete did not even use the $_CONF['site_url']. You can fix it by editing the index.php in your staticpages admin directory. Around line 344 your will find a line that reads:
DB_delete($_TABLES['staticpage'],'sp_id',$sp_id, '/admin/plugins/staticpages/index.php');
Change it to read:
B_delete($_TABLES['staticpage'],'sp_id',$sp_id, $_CONF['site_admin_url'] . '/plugins/staticpages/index.php');
and it will work correctly.
The version on my site now has been fixed.
Tom
4
7
Quote
Anonymous
Anonymous
I had just fixed the error and when I came to this site to reply with the answer, you already had replied. We were probably looking for the error at the same time!
Thanks
6
5
Quote
All times are EST. The time is now 05:11 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content