Author Topic: Bug?  (Read 3265 times)

Xarijus

  • Guest
Bug?
« on: January 04, 2008, 06:12:57 PM »
It's seems, I found a bug. Or maybe not, i'm not sure. Anyways, i want to have your attention about this.

I created a page called "a" (one letter). I wanted this page to look as "---" (three stripes) in menu, so i renamed it (i renamed only menu name, not page name). After a while I have deleted this page. And WB deleted not only this page, but whole "pages" directory. After that i couldn't reach any of my pages, because all configuration files of pages, which were in "pages" directory were lost.

I made this, because I am looking for a separator in menu. Three stipes (---) in some others CMS makes a separator, so I can make my menu easier to surf. This feature would be great in WB.

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8374
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Bug?
« Reply #1 on: January 05, 2008, 08:52:58 AM »
Hello,

bug
yes it seems you found a really hard bug. Could reproduce this. Naming the menutitel "---" and deleting the page deletes the whole pages folder on the server. The database entries of the pages and the whole content is not affected and stays correct.

Will make a ticket about this and i hope we can fix this.

Workaround for to get the pages working again:

1.) Upload the pages folder from the Original WB package to your server

2.) Recreate manually all pages files. Look in the database in the pages table for the needed infos. You need the page_id and the menu_title. Create for every menu_title a file named with the menu_title (f.e. menu_title=home file=home.php) with the following content:
Code: [Select]
<?php
$page_id 
x;
require(
"../config.php");
require(
WB_PATH."/index.php");
?>
Replace the "x" with the page_id relating to menu_title.

If you have subpages create first a folder with the name of the root page and create the subpages files in this folder. The only difference to the code above is that you have additional to adapt the path to config.php.
Root pages
Code: [Select]
require("../config.php");1. Level
Code: [Select]
require("../../config.php");and so on

3.) After you have manually created all pages files you have to chmod the whole pages folder and all folders and files in it to chmod777 (maybe 755 works also). Otherwise the wb admin (wwwrun-user) has no permissions to add, change or delete pages.

Menu Seperator
At the moment we have no possibility with the existing menus to make a seperator like you want. We can only create a seperator with calling different menus and hardcode the seperator in the template.

Matthias
« Last Edit: January 05, 2008, 09:29:02 AM by ruebenwurzel »

Xarijus

  • Guest
Re: Bug?
« Reply #2 on: January 05, 2008, 11:58:38 AM »
I have done this manually before, but still, thanks. Hope you'll fix this bug in future releases, because if you got many pages, it's a hard work to get them back manually.

I got a question. Does HTML tags work in menu name? I don't want to try it, unless I'm really sure, because I can lose something again :)

Anyways, thanks for your attention.

FruitBatInShades

  • Guest
Re: Bug?
« Reply #3 on: January 25, 2008, 04:08:56 PM »
I've just been hit by this bug too :( Not sure why they all went other than I deleted a page with _ in the name.  Has anyone created a script to regen the pages?

This is a serious bug!
« Last Edit: January 25, 2008, 04:31:02 PM by FruitBatInShades »

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8374
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Bug?
« Reply #4 on: January 25, 2008, 04:56:23 PM »
Hello,

there is no script to regen the pages, except the howto from above.

the good news is, that this is fixed in the next version.

Matthias

FruitBatInShades

  • Guest
Re: Bug?
« Reply #5 on: January 28, 2008, 01:11:04 PM »
This bug also deletes all the news posts! 6 hours it took me to manually recreate all the pages and items! grrrrrr.