Star2Billing / a2billing

A2Billing is a telecom switch and billing system capable of providing and billing a range of telecom products and services to customers such as calling card products, residential and wholesale VoIP termination, DID resale and callback services.
www.asterisk2billing.org
Other
180 stars 174 forks source link

Fatal error SmartyFactory #111

Closed afshin-blue closed 9 years ago

afshin-blue commented 9 years ago

first receive this 2 error PHP Parse error: syntax error, unexpected '[' in /var/www/html/a2billing/common/lib/Misc.php on line 1290 PHP Parse error: syntax error, unexpected '[' in /var/www/html/a2billing/common/lib/Misc.php on line 1302 remove [1] then got this error PHP Fatal error: Class 'Factory\SmartyFactory' not found in /var/www/html/a2billing/common/lib/admin.smarty.php on line 43

areski commented 9 years ago

Install the last version v2.1.2 this should be ok there

areski commented 9 years ago

https://github.com/Star2Billing/a2billing/commit/67b70464151d1cb6dc7881f2bf6d1a00549d3000

afshin-blue commented 9 years ago

Dear areski i install v2.1.2 still got blank page. i use both SVN and zip file first error: PHP Fatal error: require_once(): Failed opening required '/var/www/html/a2billing/common/lib/../../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/a2billing/common/lib/admin.defines.php on line 33

i download vendor with composer then copy to a2billing folder got second error PHP Parse error: syntax error, unexpected '[' in /var/www/html/a2billing/common/lib/Misc.php on line 1306 then i remove [1] and last error as before: PHP Fatal error: Class 'Factory\SmartyFactory' not found in /var/www/html/a2billing/common/lib/admin.smarty.php on line 43

i thin this 2 line need to be fix because file is located there and path is not correct define( 'FULL_PATH', dirname(FILE) . '/' ); define( 'SMARTY_DIR', FULL_PATH . '../../vendor/smarty/smarty/libs/' );

areski commented 9 years ago

@afshin-blue as per the patch I sent earlier this needed to be included to work. Now to make it more easy for you to test, I just released v2.1.3