Community Support for OpenDocMan (Deprecated)
checking templates - error! - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html)
+--- Thread: checking templates - error! (/thread-290.html)



checking templates - error! - johnr1 - 07-17-2010

Hi
I have modified the config_local.php file, uploaded it to my server and then tried running <!-- m --><a class="postlink" href="http://www.mydomain.info/install/index.php">http://www.mydomain.info/install/index.php</a><!-- m --> file - but, I got the following error:
'Checking that templates_c folder is writeable... Not writeable - Fix and go Back'

What have I done wrong?

Also, does the system automatically load the tables into the database or do I need to do that first?

Thanks for any help.
Kind Regards,


Re: checking templates - error! - Stephen - 07-18-2010

templates_c need to be writeable by the web server user.

The data tables are created when you run the installer, as long as you have created the database itself prior to installing, and created the mysql user.


Re: checking templates - error! - johnr1 - 07-18-2010

Thanks for reply,

When I unzipped the download files the template forder is call templates and NOT templates_c I could not find any instruction to change this?

Now I have a dataDIR error! please advise is this code correct for line 94 & 95 in config.php:

// Uncomment this one for LINUX - Don't forget the trailing slash "/"
'dataDir' => '/var/www/mm_opendocs/',

or do I need to complete the full path 'var/http://www.mydomain.com/www/mm_opendocs/', ...?


Is this correct for line 73 to 75 in config.php?
// Set this to the url of the site
// No need for trailing "/" here
$GLOBALS['CONFIG']['base_url'] = 'http://www.mydomain.com/opendocman';

I ask this because the error I get is:

Parse error: parse error, expecting `')'' in /vhost/vhost5/m/o/t/mydomain.com/www/opendocman/config.php on line 75

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /vhost/vhost5/m/o/t/mydomain.com/www/opendocman/install/index.php on line 167
Unable to connect!

Thanks again


Re: checking templates - error! - Stephen - 07-18-2010

Hello, I would suggest you put the original config.php file back in place, and re-copy the config_local.php.sample file to config_local.php.

Once you do that, you would make any needed config adjustments in config_local.php.

Make sure you follow the comments in config_local.php when adding new parameters. Notice that the database parameters are done slightly different than the CONFIG global vars are.


Re: checking templates - error! - johnr1 - 07-18-2010

Hi Steve,

I must be thick or there is fundermentally something not right with your instructions?

Maybe the file download is not working properly?

I didn't get answers to the questions I asked you and so I'm now taking up even more of your precious time which I would rather not do, so as to give others a chance!

I have done exactly what you suggested, I have reinstated the original config.php file (when is this updated file updated? your instructions talk about areas of the file that can/should ? be modified, but you don't say at what stage this should be done?) Hence I believe that hte error I am now getting are related in some way.

Errors after install is run...
Warning: Smarty error: unable to read resource: "footer.tpl" in /vhost/vhost5/m/o/t/mottmac.info/www/opendocman/includes/smarty/Smarty.class.php on line 1095

and when I try to log in as 'admin' - no password as suggested I get: There is a problem with your dataDir. Check to make sure it exists and is writeable

Note.
I left this line in config.local.php as it is as you did not answer my previous question about this, so I am not sure how to format this?
$GLOBALS['CONFIG']['dataDir'] = '/var/www/document_repository/';

I have made the permissions for the Includes folder and the templates_c folder and all of their contents 777
Should this be done to any other folders?

Your help is appreciated but maybe some more guidence would help me to move things on and get me to the stage where I can start talking money for 'personalisation changes' we will require.

Kind Regards,


Re: checking templates - error! - Stephen - 07-18-2010

$GLOBALS['CONFIG']['dataDir'] = '/var/www/document_repository/'; is the proper format in config_local.php

the footer.tpl error tells me there is a permissions issue with /templates/default/, or maybe with all your files. The folders need to have execute perms for web server, and files must be readable.

dataDir error tells me either A) it is not configured properly, or B) the folder has the incorrect permissions, or C) Both A and B