No such file or directory in /usr/share/greensql-fw/lib.php on line 28

1 reply
druid
druid's picture
Joined: 07/15/2010
User offline. Last seen 8 weeks 12 hours ago.

Hello,

Everything was working correctly after i had installed greensql but i now get this error when trying to use the console:

Warning: require(/usr/share/php/smarty/Smarty.class.php) [function.require]: failed to open stream: No such file or directory in /usr/share/greensql-fw/lib.php on line 28

Fatal error: require() [function.require]: Failed opening required '/usr/share/php/smarty/Smarty.class.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/greensql-fw/lib.php on line 28

I have checked and there is no /usr/share/php/smarty/Smarty.class.php since it is in /usr/share/php/smarty/libs/Smarty.class.php

So i simply edited line 28 of /usr/share/greensql-fw/lib.php and replaced /Smarty.class.php by /libs/Smarty.class.php which doesn't seem good as it s what is written in the else funtion right after but it works.

Best regards,

druid

Phy
Phy's picture
Joined: 06/06/2010
User offline. Last seen 3 days 17 hours ago.

Just comment the following line in ./config.php ('./' means the root of the greensql-console directory)


$smarty_dir = '/usr/share/php/smarty';

It will use the default Smarty class (if you have not modified the lines in lib.php) located there : './libs/Smarty.class.php'

Back to top