Setup / Update
- Can I install the database tables manually?
Yes, you can do that through an interface like PhpMyAdmin or a shell connected to your database. Find the file “mysql.sql” in the setup folder which contains all the SQL needed to create the tables and insert the dummy content.
- Why not upload the assets folder when upgrading?
This folder contains dummy content for new websites. Having used Template Blocks before means that most of your custom template work will reside there. You wouldn’t want to overwrite that, right?
- I can’t load the setup page! (Output: Could not save your data…)
The most common case is that you are using an unpatched version of Internet Explorer 6. Ajax calls is known to have problems with IE6 that is prior to the XP SP2 release. The only solution is to patch your IE6 to the latest version or upgrade to a more recent version of Internet Explorer.
July 4th, 2008 at 12:10 am
Hi,
I am having trouble editing blocks. When I click on a block to edit for example: topbar. I get the below errors. I have check whether the files exist or not. They all seem to be there. Has anyone else encountered this problem? Is it something to do with permissions? Thanks!
(Note: xxxxxx stands for /home/user/public_html/etc and templateblocks is where I installed it)
Errors:
Warning: fopen(xxxxx/templateblocks/template/assets/php/topbar.php) [function.fopen]: failed to open stream: No such file or directory in xxxxx/templateblocks/template/classes/Common.php on line 40
Warning: stream_get_contents() expects parameter 1 to be resource, boolean given in xxxxx/templateblocks/template/classes/Common.php on line 41
Warning: fclose(): supplied argument is not a valid stream resource in xxxxx/templateblocks/template/classes/Common.php on line 42
Edit Block: ” topbar ”
Thanks,
Asfahaan
Auckland, New Zealand
July 4th, 2008 at 12:38 am
I believe there is something wrong with the paths - that’s why the engine can’t find the blocks to load.
In the settings, have you entered the template directory relative to the root of your domain, without leading or trailing slashes?
Note that template blocks works better placed on the root at this point as custom paths haven’t been extensively tested.
July 4th, 2008 at 2:51 am
Hi,
I have created a subdomain under our main domain and yes I installed in the root of the subdomain. Well here is the subdomain: http://tblocks.tasmanit.com/
Error:
Warning: fopen(/home/tasmanit/public_html/subdomains/tblocks/template/assets/html/header.html) [function.fopen]: failed to open stream: No such file or directory in /home/tasmanit/public_html/SubDomains/tblocks/template/classes/Common.php on line 40
In the setting of Template Blocks, I have set the template directory as “template”.
Have you tried installing it on a subdomain?
Cheers,
Asfahaan
July 4th, 2008 at 3:14 am
Yes, of course. The demo site works from a subdomain:
http://demo.templateblocks.com/
Since your problem is not of a generic nature that others would benefit if the troubleshooting is available online, please carry on the discussion through email: info@templateblocks.com
One possible case I have in mind is that $_SERVER[’DOCUMENT_ROOT’] is outputted with a trailing slash in your server…
November 23rd, 2008 at 7:35 pm
Hello,
First, thanks for the amazing idea of this template engine
I’ve installed the script on the AppServ localhost And the script seems to be OK, but when i’ve uploaded the script to my server (website) & after changing the informations in the config.php I’ve noticed this error:
PHP Error Message
Warning: require() [function.require]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/template/classes/Database.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a2110983/public_html/template/index.php on line 35
PHP Error Message
Warning: require(/usr/local/apache/htdocs/template/classes/Database.php) [function.require]: failed to open stream: Operation not permitted in /home/a2110983/public_html/template/index.php on line 35
PHP Error Message
Fatal error: require() [function.require]: Failed opening required ‘/usr/local/apache/htdocs/template/classes/Database.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/a2110983/public_html/template/index.php on line 35
IWA Host PHP Error LOG 10:32 PM 11/23/2008 http://iwahost.co.cc
This Is the error.. My hosting server is Apache ver. 2.2.10 (Unix)
PHP version 5.2.*
MySQL ver. 5.0.51-community
November 24th, 2008 at 8:45 pm
Warning: require() [function.require]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/template/classes/Database.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a2110983/public_html/template/index.php on line 35
This error indicates that your host is using the PHP open_basedir setting on your server. The open_basedir setting is used to limit the files that can be opened by PHP to the specified directory-tree, including the file itself, to prevent PHP scripts of one user from accessing files in another user’s account.
Here is a link from the PHP documentation:
http://au.php.net/features.safe-mode
November 25th, 2008 at 6:21 pm
So the error from my host? should I tell them to turn this option off (because they say the same when I contact them..) Or It is not useful even when turning off.
November 27th, 2008 at 11:51 am
So the error from my host? should I tell them to turn this option off (because they say the same when I contact them..) Or It is not useful even when turning off.
This is totally up to you. Turning the setting off (if you can) will remove the error.
November 27th, 2008 at 12:35 pm
Well thanks..