Welcome, Guest. Please login or register.
Login with username, password and session length


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
VirtueMart ForumVirtueMart 1.1.xInstallation & Upgrade (Moderator: vhv_alex)Parse error: syntax error, unexpected '=', expecting ')' [SOLVED]
Pages: [1]   Go Down
Print
Author Topic: Parse error: syntax error, unexpected '=', expecting ')' [SOLVED]  (Read 9214 times)
jripleypm
Newbie
*
Posts: 2


« on: July 30, 2010, 13:14:51 PM »

Hey everyone, stoked to get this component running!  I installed the main COM_ and a few additional moduals, and then linked it to the page I wanted it to load on.  when I click on that link I get the following error:

Parse error: syntax error, unexpected '=', expecting ')' in C:\Domains\2hip.com\wwwroot\new\administrator\components\com_virtuemart\classes\payment\ps_paypal_api.php on line 1395

I opened the file and the line that is having issues is as follows:


 function getCartnvpstr( &$order_totals=array() ) {


I'm at a bit of a loss here.. it looks ok from what I can tell but i'm not a coding guru.. any help would be greatly apreciated!  I kind of hit a wall on my project!
« Last Edit: July 30, 2010, 14:50:56 PM by jripleypm » Logged
Joseph Kwan
Advanced
Hero Member
*****
Posts: 2115


« Reply #1 on: July 30, 2010, 13:54:37 PM »

Try remove =array() and see if this fix the problem.
Logged

Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away
Joseph Kwan

VM Themes and Templates explained in detail

Projects contributed:
  Excel Product Upload
  Two Product Thumbs
  Bulk Update of Order Status
and many more.
jripleypm
Newbie
*
Posts: 2


« Reply #2 on: July 30, 2010, 14:50:30 PM »

Thats whats up!  Thank you! I knew it had to be something simple!
Logged
bobbiek
Newbie
*
Posts: 2


« Reply #3 on: August 02, 2010, 19:52:22 PM »

I am a REAL newbie here.  My Canadian friend and I are trying to get this up together and neither one of us can figure it out.

What file are you talking about?
I opened the file and the line that is having issues is as follows:


 function getCartnvpstr( &$order_totals=array() ) {

When we go to the configuration we cannot find these words in the html.  Neither of us knows what file is being spoken about that should be opened and changed other than Paypal/configuration.

Any help in newbie terms would be appreciated.  This is only the third site I have built in five years and each time with a different program so I am not very advanced in this.

Thanks.
Logged
Joseph Kwan
Advanced
Hero Member
*****
Posts: 2115


« Reply #4 on: August 03, 2010, 02:41:46 AM »

Change

function getCartnvpstr( &$order_totals=array() ) {

to

function getCartnvpstr( &$order_totals) {
Logged

Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away
Joseph Kwan

VM Themes and Templates explained in detail

Projects contributed:
  Excel Product Upload
  Two Product Thumbs
  Bulk Update of Order Status
and many more.
bobbiek
Newbie
*
Posts: 2


« Reply #5 on: August 03, 2010, 21:24:26 PM »

Thank you.  It worked once I understood.  Took awhile to figure out how to find the file.  But I did.  Thanks.
Logged
luck3d
Newbie
*
Posts: 1


« Reply #6 on: September 06, 2010, 08:45:59 AM »

I made the changes said the above, but not solved my problem. Anybody else have any ideas?
Logged
Joseph Kwan
Advanced
Hero Member
*****
Posts: 2115


« Reply #7 on: September 06, 2010, 22:31:27 PM »

It is not possible that you changed the file and still the get the same error. Make sure the file is actually changed. If you get a different error, you have to report it here.
Logged

Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away
Joseph Kwan

VM Themes and Templates explained in detail

Projects contributed:
  Excel Product Upload
  Two Product Thumbs
  Bulk Update of Order Status
and many more.
ballyhoo
Newbie
*
Posts: 4


« Reply #8 on: September 22, 2010, 06:33:40 AM »

Thanks a lot, that saved my day ;-))
Logged
sandroide
Newbie
*
Posts: 3


« Reply #9 on: September 29, 2010, 06:59:03 AM »

Hi Joseph,
I had already applied your code suggestion to my site
www.tienderoticalatentacion.com
(Joomla! 1.5.20 and VM 1.1.5)
But was goes on when I click on Product details is that Joomla "loses" the template and the layout is completely wrong.
You can check it out by clicking on Accesorios and then on the product title or details.

Thanks in advance for your help.
Sandro
Logged
amenor
Newbie
*
Posts: 4


« Reply #10 on: October 04, 2010, 12:35:39 PM »

But in my case I did not VirtueMart folder administrator / components / com_virtuemart / classes / payment /.
Logged
enochRoot
Newbie
*
Posts: 6


« Reply #11 on: December 08, 2010, 08:48:14 AM »

Of course this fixes the problem as you can't assign a default value to a reference (I guess). I'd still love to know why it was put there in the first place... the programmer in question must have had a reason???
Logged
Pages: [1]   Go Up
Print
Jump to: