Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Bootstrap Theme Acts Odd with One Infusion

This is a weird one. After upgrading, one pre-existing infusion from PHP-Fusion 7 cannot access any functions in the Bootstrap Theme included with RC1.

This same infusion works with all other themes without issue.

I created a simple Hello World infusion and it works with the Bootstrap Theme. I gutted the /infusions/writings/writings.php of the infusion I'm seeing issues with, and made the contents identical to my hello world. Suddenly the exact same code could not access the opentable() function.

I'm at a loss to describe this. At first I thought it might be the code of my infusion.. but I've ruled that out. As it occurs ONLY with the Bootstrap Theme, I've decided the fault must somehow lie with it, though that makes little sense to me.

Below are the sources of the two files. hello.php is working with the Bootstrap Theme, while writings.php is not.

hello.php
CodeDownload  

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: hello.php
| Author: Chris Routh
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

require_once "../../maincore.php";
require_once THEMES."templates/header.php";
require_once INCLUDES."infusions_include.php";


opentable("Hello World");
echo "This test has been concluded.";
closetable();

require_once THEMES."templates/footer.php";



writings.php
CodeDownload  

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: writings.php
| Author: Chris Routh
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/


require_once "../../maincore.php";
require_once THEMES."templates/header.php";
require_once INCLUDES."infusions_include.php";


opentable("Hello World");
echo "This test has been concluded.";
closetable();

require_once THEMES."templates/footer.php";


No we don´t have that active. Surely there must be some reasonable explanation to it, I really tested variations but could not get the same problems.
Unless it's a PHP-Fusion cache, I do not have any cache servers or services enabled on my development site. HTTPD process has been restarted many times.
Perhaps some sort of server cache issue?, the Bootstrap theme don´t do any restrictions like that at all. Variables in the theme is nothing out of the ordinary.
Thread Information
Author
Replies
4 posts
Views
731 times
Last Post
Last updated on 4 years ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.