PDA

View Full Version : Loan Calculator 2.2.2 Plugin, new Print function broken



Athanasios Christou
September 8, 2013, 08:02 PM
Hi,

i have updated the Loan Calculator Plugin to 2.2.2 and then the Print Function is broken.

Firefox 23.0.1 : displays a blank page.
IE 10 : display a HTTP 500 Error
SRWare Iron 23.0.1300.0 : nothing happens on clicking the print button.


See picture.
658659660


Error_log:
[Sun Sep 08 22:23:58 2013] [warn] [client 188.109.80.***] mod_fcgid: stderr: PHP Notice: Undefined index: sql_debug_time in /var/www/carspin/htdocs/stdfiles/includes/classes/rlDb.class.php on line 411, referer: http://www.car***.gr/autos/audi/s5/audi-s5-tiptronic-b-o-tv-standheizung-20-25.900-eur-19.html
[Sun Sep 08 22:25:03 2013] [warn] [client 188.109.80.***] mod_fcgid: stderr: PHP Notice: Undefined variable: _SESSION in /var/www/carspin/htdocs/stdfiles/includes/classes/rlDb.class.php on line 411, referer: http://www.car***.gr/autos/audi/s5/audi-s5-tiptronic-b-o-tv-standheizung-20-25.900-eur-19.html
[Sun Sep 08 22:25:03 2013] [warn] [client 188.109.80.***] mod_fcgid: stderr: PHP Notice: Undefined index: sql_debug_time in /var/www/carspin/htdocs/stdfiles/includes/classes/rlDb.class.php on line 411, referer: http://www.car***.gr/autos/audi/s5/audi-s5-tiptronic-b-o-tv-standheizung-20-25.900-eur-19.html
[Sun Sep 08 22:25:03 2013] [warn] [client 188.109.80.***] mod_fcgid: stderr: PHP Notice: Undefined variable: _SESSION in /var/www/carspin/htdocs/stdfiles/includes/classes/rlDb.class.php on line 411, referer: http://www.car***.gr/autos/audi/s5/audi-s5-tiptronic-b-o-tv-standheizung-20-25.900-eur-19.html
[Sun Sep 08 22:25:03 2013] [warn] [client 188.109.80.***] mod_fcgid: stderr: PHP Notice: Undefined index: sql_debug_time in /var/www/carspin/htdocs/stdfiles/includes/classes/rlDb.class.php on line 411, referer: http://www.car***.gr/autos/audi/s5/audi-s5-tiptronic-b-o-tv-standheizung-20-25.900-eur-19.html
[Sun Sep 08 22:25:04 2013] [warn] [client 188.109.80.***] mod_fcgid: stderr: PHP Notice: Undefined variable: _SESSION in /var/www/carspin/htdocs/stdfiles/includes/classes/rlDb.class.php on line 411, referer: http://www.car***.gr/autos/audi/s5/audi-s5-tiptronic-b-o-tv-standheizung-20-25.900-eur-19.html
[Sun Sep 08 22:25:04 2013] [warn] [client 188.109.80.***] mod_fcgid: stderr: PHP Notice: Undefined index: sql_debug_time in /var/www/carspin/htdocs/stdfiles/includes/classes/rlDb.class.php on line 411, referer: http://www.car***.gr/autos/audi/s5/audi-s5-tiptronic-b-o-tv-standheizung-20-25.900-eur-19.html
[Sun Sep 08 22:25:05 2013] [warn] [client 188.109.80.***] mod_fcgid: stderr: PHP Notice: Undefined variable: _SESSION in /var/www/carspin/htdocs/stdfiles/includes/classes/rlDb.class.php on line 411, referer: http://www.car***.gr/autos/audi/s5/audi-s5-tiptronic-b-o-tv-standheizung-20-25.900-eur-19.html
[Sun Sep 08 22:25:05 2013] [warn] [client 188.109.80.***] mod_fcgid: stderr: PHP Notice: Undefined index: sql_debug_time in /var/www/carspin/htdocs/stdfiles/includes/classes/rlDb.class.php on line 411, referer: http://www.car***.gr/autos/audi/s5/audi-s5-tiptronic-b-o-tv-standheizung-20-25.900-eur-19.html



Please help!

Thanks.

Best greetings
Sakis

John
September 18, 2013, 03:51 AM
Hi Sakis,
The problem turned out in a missed code lines of current script version and the fix is enough simple:
1. open the file: /index.php
2. find the code:


if ( $page_info['Page_type'] == 'system' )
{
$rlSmarty -> display( 'controllers' . RL_DS . $page_info['Controller'] . '.tpl' );
}

3. replace with:


if ( $page_info['Page_type'] == 'system' )
{
if ( $page_info['Plugin'] )
{
$rlSmarty -> display(RL_PLUGINS . $page_info['Plugin'] . RL_DS . $page_info['Controller'] . '.tpl');
}
else
{
$rlSmarty -> display('controllers' . RL_DS . $page_info['Controller'] . '.tpl');
}
}


That's all!

John

Athanasios Christou
September 18, 2013, 10:12 PM
Thank you very much John.

Good job !!!


Best greetings
Sakis

Sui soon Chua
September 20, 2013, 12:05 PM
Thank you John.

I get this fixed with your code posted above.

Best Regards,
Bert