Page 1 of 1

[SOLVED]CGSimpleSmarty major errors

Posted: Thu Mar 28, 2013 5:02 pm
by carasmo
Brand new install of 1.11.5
and trying to install CGSimpleSmarty (for CGBlog) whether I use repository through admin or XML:

Code: Select all

Warning: require_once(__DIR__/function.module_action.php) [function.require-once]: failed to open stream: No such file or directory in /home/---/public_html/beta/modules/CGSimpleSmarty/CGSimpleSmarty.module.php on line 39

Code: Select all

Fatal error: require_once() [function.require]: Failed opening required '__DIR__/function.module_action.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/---/public_html/beta/modules/CGSimpleSmarty/CGSimpleSmarty.module.php on line 39
Now i see wrong v of php

Re: [SOLVED]CGSimpleSmarty major errors

Posted: Fri Mar 29, 2013 2:05 pm
by alaw
Thanks for posting the solution to this--I ran into the same problem yesterday.

Re: [SOLVED]CGSimpleSmarty major errors

Posted: Fri Mar 29, 2013 2:16 pm
by carasmo
The host I am using is VPS, which may or may not be applicable in your situation. The old site is on CMSMS 1.4 or something really old and since I can't upgrade the entire account, they told me all I have to do is add an .htaccess file to the root of the new domain (sub) and I can use 5.3, I am going to see what the latest php is and try that, I think it's 5.4.

Code: Select all

 In order to use PHP 5.3 version for one of the domains under your account, please go to the document root of the domain in question, create there an .htaccess file, and add there the following line:

AddHandler application/x-httpd-php53 .php

Re: [SOLVED]CGSimpleSmarty major errors

Posted: Fri Mar 29, 2013 2:27 pm
by alaw
My hosting account was running php 5.2, but I had the option to run php 5.3 on it instead. After I made the switch, everything worked properly.

Thanks again.

Angela

Re: [SOLVED]CGSimpleSmarty major errors

Posted: Tue May 28, 2013 12:55 am
by beattie
Thank you very much for posting this solution, worked great for me.