Problem with a path to templates, page layout and articles.

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
trapez
Posts: 40
Joined: Thu 29. Jul 2004, 14:36
Location: Toronto

Problem with a path to templates, page layout and articles.

Post by trapez »

When editing Article and executing a code inside phpwcms.php:
case 2: include_once ("./include/inc_lib/article.editcontent.inc.php");

we reach the lines of code inside article.editcontent.inc.php that are:
if(!intval($_GET["aktion"])) {; //Solange nicht Editieren gewählt
$_SESSION["article_path"] = $article["article_cat"]."#|#".$article["article_title"];
include_once PHPWCMS_ROOT."/include/inc_tmpl/articlecontent.list.tmpl.php";

PHPWCMS_ROOT is based on $phpwcms["root"] from conf.inc.php and it is oryginaly set to:
$phpwcms["root"] = "";
Because of this none of the Articles can be edited because there is an incorect path build. When we put the directory where phpwcms has been installed editing Articles work fine but Page Layout, Templates etc. have a wrong path now. So it is either or. WHen we don't put it that piece of path is missing for editing Articles. When we put it there is an extra one added and that builds the wrong path for everythign else.
Please advise.
Thanks.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

seems you have wrong settings.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
trapez
Posts: 40
Joined: Thu 29. Jul 2004, 14:36
Location: Toronto

Not so sure...

Post by trapez »

When you say wrong settings what and where would that be. If I follow the instructions to fill root with the folder name where I installed phpwcms then for page layout and templates when path is generated inside the code there is a duplication of that directory. If I don't put and leave an empty string then Articles don't work.
If the settings are wrong where would that be?
Thanks
Pappnase

Post by Pappnase »

hello

please take a look at this maybe it helps!

http://www.phpwcms.de/forum/viewtopic.php?t=1815
Locked