WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: maxbrax on April 25, 2010, 07:00:27 PM
-
I used the droplets TemplateTester with WebsiteBaker 2.8 with excellent results :-D, now I tried with WebsiteBaker 2.8.1 (Revision 1287 +1308) but the droplet does not work. :?
I made editing the index.php in the root where you installed the site, as already done with version 2.8, but the droplet does not work.
:| Who can give me a hint to solve the problem for me is very important to place this droplet.
-
nobody has this problem? :oops:
-
Sorry, I've never used it so can't say. Is there a forum for it?
-
Hello
Well - looking to the droplet-code on/from AMASPs official Droplet-Lib i can assumee
that a missing "TABLE_PREFIX" in the first line could be the problem ... so
<?php // not this line!
$list = $database->query("select * from `".TABLE_PREFIX."addons` where type= 'template'");
could be make it work ...
Kind regards
Aldus
-
:cry:
Aldus thanks for your reply,
I tried the change you proposed, but have not had positive results
the page remains white
:cry:
-
Hello
Ok - next round ;-)
You can set the PHP Error-Reporting in "options"->"advanced options" to "E_ALL & E_STRICT" or
place some lines of code like
<?php // not this one
ini_set('display_errors', 1);
error_reporting(E_ALL|E_STRICT);
?>
at the top inside your default template to force PHP to tell you, what's going wrong.
PHP-Version?
Regards
Aldus
-
Dear Aldus
i have set the PHP Error-Reporting and the result of the page is:
Notice: Undefined index: template in D:\WB_Portable28\htdocs\maxbrax2.8.1\index.php on line 41
The PHP versions is : PHP Version 5.2.10
These are the changes to index.php:
<?php
// $Id: index.php 1138 2009-08-25 10:18:21Z ruud $
/*
WebsiteBaker Project <http://www.WebsiteBaker.org/>
Copyright (C) 2004-2009, Ryan Djurovich
WebsiteBaker is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
WebsiteBaker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with WebsiteBaker; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
$starttime = array_sum(explode(" ",microtime()));
// Include config file
require_once(dirname(__FILE__).'/config.php');
// Check if the config file has been set-up
if(!defined('WB_PATH')) {
header("Location: install/index.php");
exit(0);
}
if(isset($_GET['template']) and $_GET['template'] != '') {
define('TEMPLATE',$_GET['template']);
if($_GET['perm'] == 'yes') {
$_SESSION['template'] = $_GET['template'];
}
} else if ($_SESSION['template'] != "" and isset($_SESSION['template'])) {
define('TEMPLATE',$_SESSION['template']);
}
I'm trying locally with websitbeker portable and some sites with WB2.8 works but does not work with version WB2.8
-
Hello
Hm ... as this is a notice - not a fatal-error - i still assumee that some files are corrupt or not
updated/upgrade correctly. Some times ago we've got a similar problem within an user who has
reach the webspace-limit and nearly 30% of the files are corrupt ...
Hm - blank page means i.o.w. "parsing-error" - php seems to be unable to process the "precompile" at all,
so there must be an error somewhere else.
Is there any (test-)page out there to take a //deeper// look for the details?
Kind regards
Aldus
-
Hello Aldus
to remove any doubt as to whether a bad upgrade from WB2.8
WB2.81 I decided to make two distinct and separate installations
two test sites, the first with WB 2.8 and WB with a second 2.81.
The installation of two test sites I've done locally using
WEBSITEPORTABLE 2.81.
I entered the droplet TEMPLATETESTER AMASP as described in
page in both the two test sites. I did on both sites the
modification of the "index.php" in the root of the two installations.
Then, the result is as follows:
Site TEST WB 2.8, the droplet TEMPLATETESTER working properly, see image result-wb-2.8.jpg
Site TEST WB 2.81, the droplet TEMPLATETESTER not work,see image result-wb-2.81.jpg
The template site is set up for both "Round"
Please let me know where I can test on both TEST sites in order to understand how to solve the problem.
Thanks in advance
Maxbrax :-)
[gelöscht durch Administrator]
-
hi max,
there was a german threat for this problem:
https://forum.WebsiteBaker.org/index.php/topic,17128.msg113129.html#msg113129
the post shows the line that did the problem and a dirty solution for this!
BUT ALSO A warning from the Core Dev Team to use such kind of Droplets that using other sessions and get to deep in the WB Core itself!
There is no garantie that you open security issues or something else on your installation!
regards martin
-
Hi mr-fan,
I watched the post in German that you have indicated, but unfortunately the suggested change provides no positive result. :cry:
Given the negative result I started looking for where the bug was, and analyzing the error line
Fatal error: Call to a member function query () on a non-object in D: \ websitebakerPortabl e2.8.1 \ htdocs \ wb281 \ modules \ Droplets \ droplets.php (55): eval () 'd code on Line 1
I tried the module folder file "droplets.php" and I noticed that the WB version 2.8.1 the form is slightly different from the one provided with version 2.8.0, :-o I tried to replace the entire folder of form and beautifully took to work. :wink:
Now I would like some time to explore everything in the form WB2.8.1 is provided in version 1.0.2 of 08/25/2009 10:18:21 WB2.8 while the old version is 1.0.1 of 03/07/2009.
:-D