Help - Search - Members - Calendar
Full Version: Getting error message in cc3
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
Barnsta
hi there

just installed cc 3 but when i go to teh store itself i get this error message


Warning: ereg_replace(): Invalid preceding regular expression in /home/sites/georgemiliotis.co.uk/public_html/orders/classes/xtpl.php on line 109


thanks for looking and helping
Barnsta
help please!!
gazza
Warning: Invalid content of \{\} in /home/sites/site69/web/cc3/classes/xtpl.php on line 109

I have the above error in the same file!
rdlean
i am getting the same error... :/
murray@stoon.com
I just installed it with the same message.
I profess to know nothing about programing but ...
Line 109 reads
$copy=ereg_replace("\{$v\}","$var",$copy);

I replaced it with the same as line 102 - it reads
$copy=ereg_replace("\{".$v."\}","$var",$copy);

It seem to works fine now - although remember this is a beta version. I still don't know what that has done to the functionality of the system.
Someone with more knowledge I am hoping with confirm that this will work.
rdlean
anybody able to confirm this? sad.gif
Dave C
I have done exactly the same and like you say it seems to be working fine. I will add some dummy products etc and take a general look when I actually have some spare time.

Dave biggrin.gif
sam999
Just had exactly the same prolem. The above worked for me, well done that man!
Not sure if there are any problems ahead though.
gazza
I had this problem and did this:

\classes\xtpl.php line 109

From
$copy=ereg_replace("{$v}","$var",$copy);

To
$copy=str_replace("{".$v."}","$var",$copy);

Fixed my problem.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.