[solved] Installation problem - Smarty errors on network paths

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

[solved] Installation problem - Smarty errors on network paths

Post by darconny »

Hi,

As I haven't solved the installation problem yet, I decided to move discussion from 
http://forum.cmsmadesimple.org/index.php/topic,19786.15.html and to explain everything again.

I've developed a cmsms site on my friends private hosting, everything worked and had no problems at all.

Now I have to move the site to a local service provider. The clients current provider has php memory limit of 8MB (can't be changed), which caused many troubles with cmsms working (white pages etc). Now I try to test cmsms on another service provider (16MB php memory limit). Also, I got permission from my client to move to this provider if I succeed with installation.

The problem seems different, I think the problem isn't with php memory limit here.
I tried few different cmsms versions, here describing latest try with 1.2.5 (basic installation).

I used FileZilla for uploading content (in a test folder) and setting permissions (as described in installation docs).
Created and uploaded empty config.php, permission set to 666.
I have an empty default database, created by service provider (no tables).

At the first installation check, everything passed except "Checking if sessions are enabled" where I got yellow circle.
I got green "Success!" at step 4.

On the first site opening I got these messages:

string(256) "Smarty error: [in template:17 line 9]: syntax error: plugin function smarty_function_sitename() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.sitename.php (Smarty_Compiler.class.php, line 805)" string(250) "Smarty error: [in template:17 line 9]: syntax error: plugin function smarty_function_title() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.title.php (Smarty_Compiler.class.php, line 805)" string(257) "Smarty error: [in template:17 line 12]: syntax error: plugin function smarty_function_metadata() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.metadata.php (Smarty_Compiler.class.php, line 805)" string(261) "Smarty error: [in template:17 line 15]: syntax error: plugin function smarty_function_stylesheet() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.stylesheet.php (Smarty_Compiler.class.php, line 805)" string(265) "Smarty error: [in template:17 line 18]: syntax error: plugin function smarty_function_cms_selflink() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.cms_selflink.php (Smarty_Compiler.class.php, line 805)" string(265) "Smarty error: [in template:17 line 19]: syntax error: plugin function smarty_function_cms_selflink() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.cms_selflink.php (Smarty_Compiler.class.php, line 805)" string(265) "Smarty error: [in template:17 line 20]: syntax error: plugin function smarty_function_cms_selflink() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.cms_selflink.php (Smarty_Compiler.class.php, line 805)" string(253) "Smarty error: [in template:17 line 52]: syntax error: plugin function smarty_function_anchor() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.anchor.php (Smarty_Compiler.class.php, line 805)" string(253) "Smarty error: [in template:17 line 53]: syntax error: plugin function smarty_function_anchor() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.anchor.php (Smarty_Compiler.class.php, line 805)" string(265) "Smarty error: [in template:17 line 64]: syntax error: plugin function smarty_function_cms_selflink() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.cms_selflink.php (Smarty_Compiler.class.php, line 805)" string(253) "Smarty error: [in template:17 line 72]: syntax error: plugin function smarty_function_search() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.search.php (Smarty_Compiler.class.php, line 805)" string(263) "Smarty error: [in template:17 line 79]: syntax error: plugin function smarty_function_breadcrumbs() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.breadcrumbs.php (Smarty_Compiler.class.php, line 805)" string(249) "Smarty error: [in template:17 line 94]: syntax error: plugin function smarty_function_menu() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.menu.php (Smarty_Compiler.class.php, line 805)" string(250) "Smarty error: [in template:17 line 101]: syntax error: plugin function smarty_function_news() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.news.php (Smarty_Compiler.class.php, line 805)" string(252) "Smarty error: [in template:17 line 111]: syntax error: plugin function smarty_function_print() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.print.php (Smarty_Compiler.class.php, line 805)" string(252) "Smarty error: [in template:17 line 112]: syntax error: plugin function smarty_function_title() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.title.php (Smarty_Compiler.class.php, line 805)" string(256) "Smarty error: [in template:17 line 113]: syntax error: plugin function smarty_function_content() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.content.php (Smarty_Compiler.class.php, line 805)" string(254) "Smarty error: [in template:17 line 118]: syntax error: plugin function smarty_function_anchor() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.anchor.php (Smarty_Compiler.class.php, line 805)" string(266) "Smarty error: [in template:17 line 121]: syntax error: plugin function smarty_function_cms_selflink() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.cms_selflink.php (Smarty_Compiler.class.php, line 805)" string(266) "Smarty error: [in template:17 line 122]: syntax error: plugin function smarty_function_cms_selflink() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.cms_selflink.php (Smarty_Compiler.class.php, line 805)" string(270) "Smarty error: [in template:17 line 138]: syntax error: plugin function smarty_function_global_content() not found in \172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins\function.global_content.php (Smarty_Compiler.class.php, line 805)"


You can take a look: http://www.boonshop.co.rs/test_cms/

Also, latest installation won't let me to log in, the login screen shows normally.
As I can see, there are 51 tables in db.

If someone could point what's wrong here, it would be much appreciated.

Thank you,
Darko
Last edited by darconny on Tue Aug 05, 2008 7:51 am, edited 1 time in total.
jan_hut
Forum Members
Forum Members
Posts: 60
Joined: Sat Jul 01, 2006 1:48 pm

Re: Installation problem - Smarty errors, site not working

Post by jan_hut »

When I look at the following line I see two things that seem to be out of place:
\172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms/plugins
- there's an ip address (172.21.204.201) as well as a URL (boonshop.co.rs)
- there's a slash AND a backslash (\test_cms/)

I'm thinking there's a problem with what you set as documentroot or root URL.

Download your config.php file through ftp and look for the following lines
#-------------
#Path Settings
#-------------

#Document root as seen from the webserver.  No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.yoursite.com';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}

#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/path to your root/public_html';
in your case the root url should be http://www.boonshop.co.rs/test_cms

and I'm guessing the root path should be: webvol1/4d/fz5o71f2u2s9er7/boonshop.co.rs/public_html/test_cms
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Installation problem - Smarty errors, site not working

Post by darconny »

Thanks, jan_hut.

You're right, in config.php file the root path is something like this:
\172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms

The root url is like you said i.e. like it should be.

So now I'll try to upload again and do a fresh install.

I am not sure how to check if this is the root path in this case:
webvol1/4d/fz5o71f2u2s9er7/boonshop.co.rs/public_html/test_cms

regadrs
Darko
alby

Re: Installation problem - Smarty errors, site not working

Post by alby »

darconny wrote: I am not sure how to check if this is the root path in this case:
webvol1/4d/fz5o71f2u2s9er7/boonshop.co.rs/public_html/test_cms
Run http://xxxxxx/install/ and if you have already DB data, unchecked write tables in DB (in step 4 I think)
This write a new config.php with correct data

Alby
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Installation problem - Smarty errors, site not working

Post by darconny »

Yes, I tried that but I have to type correct paths. Maybe the path jan_hut suggested isn't right..
Now I get these on my home page:

string(118) "Smarty error: [in template:17 line 9]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in template:17 line 9]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:17 line 12]: syntax error: unrecognized tag 'metadata' (Smarty_Compiler.class.php, line 590)" string(121) "Smarty error: [in template:17 line 15]: syntax error: unrecognized tag 'stylesheet' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 18]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 19]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 20]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 52]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 53]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)" string(123) "Smarty error: [in template:17 line 64]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 72]: syntax error: unrecognized tag 'search' (Smarty_Compiler.class.php, line 590)" string(122) "Smarty error: [in template:17 line 79]: syntax error: unrecognized tag 'breadcrumbs' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in template:17 line 94]: syntax error: unrecognized tag 'menu' (Smarty_Compiler.class.php, line 590)" string(116) "Smarty error: [in template:17 line 101]: syntax error: unrecognized tag 'news' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 111]: syntax error: unrecognized tag 'print' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:17 line 112]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:17 line 113]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 590)" string(118) "Smarty error: [in template:17 line 118]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in template:17 line 121]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in template:17 line 122]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)" string(126) "Smarty error: [in template:17 line 138]: syntax error: unrecognized tag 'global_content' (Smarty_Compiler.class.php, line 590)"

Also, when I run install again, on the first screen I get this for checking permissions:
Checking write permission on \\172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms\config.php
So, I assume this is the path...

Site still not working.. any ideas?

Thanks
Darko
Last edited by darconny on Mon Aug 04, 2008 9:03 pm, edited 1 time in total.
alby

Re: Installation problem - Smarty errors, site not working

Post by alby »

darconny wrote: Also, when I run install again, on the first screen I get this for checking permissions:
Checking write permission on \\172.21.204.201\webvol1\4d\fz5o71f2u2s9er7\boonshop.co.rs\public_html\test_cms\config.php
So, I assume this is the path...
No, is a SMB path (samba?)
Your web server access to remote folders in your LAN (172.21.204.201) or access to same server via network (in chroot environment) or ....

It's not wrong but not usually.
Continue with install and check for paths in config.php, in your case is \\ (double) and not \ (single)

darconny wrote: string(118) "Smarty error: [in template:17 line 9]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 590)" string(115) "Smarty error: [in template:17 line 9]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)" string(119) "Smarty error: [in template:17 line 12]: syntax error: unrecognized tag 'metadata'
Check folder/files permissions

Alby
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Installation problem - Smarty errors, site not working

Post by darconny »

Thank you very much Alby, I've doubled '\' in my paths and now the site is working :)

But, now the problem is I can't login to my admin account...just rejects, without message 'wrong user name or password'.

Darko
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: Installation problem - Smarty errors, site not working

Post by darconny »

I found the solution for the admin login here on the forum.

In the file include.php I added:
Session_save_path ('.../tmp')

Great community, thanks a lot! :)
Darko
alby

Re: Installation problem - Smarty errors, site not working

Post by alby »

darconny wrote: I found the solution for the admin login here on the forum.
Please add [SOLVED] to first title post (and add: network path) for future search

Alby
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: [solved] Installation problem - Smarty errors, site not working

Post by darconny »

I've added [solved] in the title last night just after the problem was solved. Also I'm not sure what you mean by 'and add: network path', please explain.. I really want to follow the rules here so someone else could find the solution in this thread.

Darko
alby

Re: [solved] Installation problem - Smarty errors, site not working

Post by alby »

darconny wrote: I've added [solved] in the title last night just after the problem was solved. Also I'm not sure what you mean by 'and add: network path', please explain.. I really want to follow the rules here so someone else could find the solution in this thread.
For search, if you see in title (for example):
[solved] Installation problem - Smarty errors on network paths

I think that if I have a problem on network paths (and not local paths) is more probably I find this

Alby
darconny
Forum Members
Forum Members
Posts: 104
Joined: Thu Nov 22, 2007 12:43 pm

Re: [solved] Installation problem - Smarty errors on network paths

Post by darconny »

Ok, done.

Thanks for the help again,
Darko
Locked

Return to “[locked] Installation, Setup and Upgrade”