0
Hi,
Running Joomla 2.5.9, I'm getting PHP errors when trying to use "Payments" or "Invoices" options from the component menu. I was getting a blank screen, until I turned on the error reporting in PHP.ini file, showing the errors listed below.
I'm testing "Invoices" on my localhost (my PC not live site), running WAMPServer 2.2, details as below:
PHP: Ver 5.3.8
MySQL 5.5.18
I have installed plugin, component, and the dompdf folder to components/com_invoices/helper as specified in installation instructions.
Component : 1.1.0_2.5_zip
Plugin : payment_paypal_1.1.0_2.5.zip
PDF : dompdf.zip
In php.ini, I turned on error reporting and got these errors when clicking "Invoices" option:
( ! ) Parse error: syntax error, unexpected $end in C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\views\invoices\tmpl\default.php on line 174
Call Stack
# Time Memory Function Location
1 0.0012 354296 {main}( ) ..\index.php:0
2 1.0425 13719480 JAdministrator->dispatch( ) ..\index.php:46
3 1.0503 14031464 JComponentHelper::renderComponent( ) ..\application.php:153
4 1.0634 14036352 JComponentHelper::executeComponent( ) ..\helper.php:351
5 1.0647 14118312 require_once( 'C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\invoices.php' ) ..\helper.php:383
6 1.0795 14615856 JController->execute( ) ..\invoices.php:127
7 1.0795 14615904 InvoicesController->display( ) ..\controller.php:761
8 1.0795 14615904 JController->display( ) ..\controller.php:23
9 1.0956 14952536 InvoicesViewInvoices->display( ) ..\controller.php:722
10 1.1268 15736744 JView->display( ) ..\view.html.php:86
11 1.1268 15736744 JView->loadTemplate( ) ..\view.php:205
I get the following when clicking "Payments" option:
( ! ) Parse error: syntax error, unexpected $end in C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\views\payments\tmpl\default.php on line 158
Call Stack
# Time Memory Function Location
1 0.0015 354672 {main}( ) ..\index.php:0
2 0.6963 13719368 JAdministrator->dispatch( ) ..\index.php:46
3 0.7024 14031400 JComponentHelper::renderComponent( ) ..\application.php:153
4 0.7158 14036280 JComponentHelper::executeComponent( ) ..\helper.php:351
5 0.7165 14118272 require_once( 'C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\invoices.php' ) ..\helper.php:383
6 0.7279 14632648 JController->execute( ) ..\invoices.php:127
7 0.7279 14632696 PaymentsController->display( ) ..\controller.php:761
8 0.7279 14632696 JController->display( ) ..\controller.php:71
9 0.7370 14944048 PaymentsViewPayments->display( ) ..\controller.php:722
10 0.7530 15723352 JView->display( ) ..\view.html.php:77
11 0.7530 15723352 JView->loadTemplate( ) ..\view.php:205
I've turned off all options referring to "magic quotes" as far as I can tell.
I'm no PHP expert (just enough to be able to turn on error reporting and advise the above....)
Please advise what these errors are referring to and if there's a fix so I can run Invoices on my localhost without first installing this Joomla site to my live domain.
Thanks
Running Joomla 2.5.9, I'm getting PHP errors when trying to use "Payments" or "Invoices" options from the component menu. I was getting a blank screen, until I turned on the error reporting in PHP.ini file, showing the errors listed below.
I'm testing "Invoices" on my localhost (my PC not live site), running WAMPServer 2.2, details as below:
PHP: Ver 5.3.8
MySQL 5.5.18
I have installed plugin, component, and the dompdf folder to components/com_invoices/helper as specified in installation instructions.
Component : 1.1.0_2.5_zip
Plugin : payment_paypal_1.1.0_2.5.zip
PDF : dompdf.zip
In php.ini, I turned on error reporting and got these errors when clicking "Invoices" option:
( ! ) Parse error: syntax error, unexpected $end in C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\views\invoices\tmpl\default.php on line 174
Call Stack
# Time Memory Function Location
1 0.0012 354296 {main}( ) ..\index.php:0
2 1.0425 13719480 JAdministrator->dispatch( ) ..\index.php:46
3 1.0503 14031464 JComponentHelper::renderComponent( ) ..\application.php:153
4 1.0634 14036352 JComponentHelper::executeComponent( ) ..\helper.php:351
5 1.0647 14118312 require_once( 'C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\invoices.php' ) ..\helper.php:383
6 1.0795 14615856 JController->execute( ) ..\invoices.php:127
7 1.0795 14615904 InvoicesController->display( ) ..\controller.php:761
8 1.0795 14615904 JController->display( ) ..\controller.php:23
9 1.0956 14952536 InvoicesViewInvoices->display( ) ..\controller.php:722
10 1.1268 15736744 JView->display( ) ..\view.html.php:86
11 1.1268 15736744 JView->loadTemplate( ) ..\view.php:205
I get the following when clicking "Payments" option:
( ! ) Parse error: syntax error, unexpected $end in C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\views\payments\tmpl\default.php on line 158
Call Stack
# Time Memory Function Location
1 0.0015 354672 {main}( ) ..\index.php:0
2 0.6963 13719368 JAdministrator->dispatch( ) ..\index.php:46
3 0.7024 14031400 JComponentHelper::renderComponent( ) ..\application.php:153
4 0.7158 14036280 JComponentHelper::executeComponent( ) ..\helper.php:351
5 0.7165 14118272 require_once( 'C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\invoices.php' ) ..\helper.php:383
6 0.7279 14632648 JController->execute( ) ..\invoices.php:127
7 0.7279 14632696 PaymentsController->display( ) ..\controller.php:761
8 0.7279 14632696 JController->display( ) ..\controller.php:71
9 0.7370 14944048 PaymentsViewPayments->display( ) ..\controller.php:722
10 0.7530 15723352 JView->display( ) ..\view.html.php:77
11 0.7530 15723352 JView->loadTemplate( ) ..\view.php:205
I've turned off all options referring to "magic quotes" as far as I can tell.
I'm no PHP expert (just enough to be able to turn on error reporting and advise the above....)
Please advise what these errors are referring to and if there's a fix so I can run Invoices on my localhost without first installing this Joomla site to my live domain.
Thanks
Responses (4)
-
Accepted Answer
-
Accepted Answer
0Hi, Thank you for the setting change you mentioned - the solution worked partially (remains to be seen if that setting is "On" on my live web host, but I'll check that soon).
I now get the invoices (and payments) screen but within the invoice screen, get PHP errors such as that below
Notice: Use of undefined constant - assumed ' ' in C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\views\invoices\tmpl\default.php on line 44
Call Stack
# Time Memory Function Location
1 0.0013 354680 {main}( ) ..\index.php:0
2 0.7076 13719536 JAdministrator->dispatch( ) ..\index.php:46
3 0.7145 14031520 JComponentHelper::renderComponent( ) ..\application.php:153
4 0.7274 14036384 JComponentHelper::executeComponent( ) ..\helper.php:351
5 0.7281 14118360 require_once( 'C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\invoices.php' ) ..\helper.php:383
6 0.7389 14615944 JController->execute( ) ..\invoices.php:127
7 0.7389 14615992 InvoicesController->display( ) ..\controller.php:761
8 0.7389 14615992 JController->display( ) ..\controller.php:23
9 0.7484 14952624 InvoicesViewInvoices->display( ) ..\controller.php:722
10 0.7635 15736824 JView->display( ) ..\view.html.php:86
11 0.7635 15736824 JView->loadTemplate( ) ..\view.php:205
12 0.7666 15931120 include( 'C:\wamp\www\development\2013.murraywebs.com\administrator\components\com_invoices\views\invoices\tmpl\default.php' ) ..\view.php:649
As show in this screenshot:
The "line 44" the error mentions only has this:
Thanks for any further help.
PS - if I turn PHP errors "display_errors" to OFF then the error above goes away and the component appears to function normally, but I'm still interested in what is causing the problem.
Thanks -
Accepted Answer
0hello!
this error is something else, actually it's just a Notice.
in PHP there are 3 types of alerts:
- errors
- warnings
- notices
errors are a problem. warnings should be sorted out, although they are not "dramatic". notices are just information about coding standards.
you should turn Notices off. disable the error reporting (or decrease its level) becaus eyou don't need to see them.. the software will work fine anyway! -
Accepted Answer
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »