Problem with TplParser.php on Localhost

Polygrafix

Avatar: Polygrafix

2007-04-10 18:10

Hello to everyone,
I've got an issue with running Quick.Cart 2.1 on localhost.
When I try to access front page (http://localhost:8080/qc21/), I see just a bunch of notices:
Array to string conversion in .../libraries/TplParser.php on line 178.

And another notices:
Undefined variable in .../libraries/TplParser.php on line 169/170.

Then I've got warnings:
preg_replace: Unknown modifier '\' in .../libraries/TplParser.php on line 178.

Then Apache dies.

I tried to access Quick.Cart through JSAS (Joomla Standalone Server) as my localhost:80 and everything is fine. So I assume, I need to change something in PHP configuration files. I just don't know what and where.

I know I could just use another localhost, I'm just wondering.
Thanks in advance.

» Quick.Cart v2.x

treewood (OpenSolution)

Avatar: treewood

2007-04-11 09:22

Polygrafix - what PHP version You have?

Polygrafix

Avatar: Polygrafix

2007-04-17 10:08

Treewood, it's PHP 5.1.1

Sorry for the late response, I was away from the computer

Polygrafix

Avatar: Polygrafix

2007-04-17 10:10

BTW I tried Quick.Cart 1.3 on mentioned localhost and it seems to run alright

treewood (OpenSolution)

Avatar: treewood

2007-04-17 12:56

Polygrafix - then please edit 169 line in libraries/TplParser.php and change:
if( !is_array( $$aResults[1][$i] ) ){
to:
if( isset( $$aResults[1][$i] ) && !is_array( $$aResults[1][$i] ) ){

Problem fixed?

Polygrafix

Avatar: Polygrafix

2007-04-17 13:15

No. I'm not getting Undefined variable...on line 169 notice, but I still get other notices and warnings (lines 170 and 178), apacha still dies.

Thanks anyway.

treewood (OpenSolution)

Avatar: treewood

2007-04-17 15:17

Polygrafix - hmm... could You try to check this on PHP 4.x.x ? Maybe it is only PHP problem and we will need to check it but we must be shure.

Polygrafix

Avatar: Polygrafix

2007-04-17 16:21

My other localhost (JSAS 1.10, see above) has PHP 4.4.4 and everything is alright.

treewood (OpenSolution)

Avatar: treewood

2007-04-18 08:19

Polygrafix - ok then thx for report ... we will look for it in future

Back to top
about us | contact