Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-04-20 00:43:47

PatrickV
Member
Registered: 2014-03-20
Posts: 13

ERROR: Function name must be a string

I am trying to install a new gallery with cart function.
When i try to add a photo to the cart i get the message "Something Went Wrong (SyntaxError: Unexpected identifier)
Please try again later, or contact the photographer if this problem persists."

I am using the following versions:
Gallery 6.1.9
TTG BE Admin version: 2.0.5
CE4 Publisher version: 2.3.3
Cart Version: 3.1.4

the log file that i found gives the following mesage:
[19-Apr-2016 15:31:11] ERROR: Function name must be a string|#0 /home/deb97817/domains/store.drifting.media/public_html/ttg-be/framework/lib/Parsedown.php(931): Parsedown->element(Array)#1 /home/deb97817/domains/store.drifting.media/public_html/ttg-be/framework/lib/Parsedown.php(257): Parsedown->elements(Array)#2 /home/deb97817/domains/store.drifting.media/public_html/ttg-be/framework/lib/Parsedown.php(48): Parsedown->lines(Array)#3 /home/deb97817/domains/store.drifting.media/public_html/ttg-be/framework/lib/markdown.php(15): Parsedown->text('This is the *De...')#4 /home/deb97817/domains/store.drifting.media/public_html/ttg-be/cart/application/controllers/AjaxController.php(113): Markdown('This is the *De...')#5 /home/deb97817/domains/store.drifting.media/public_html/ttg-be/framework/controllers/Controller.php(41): AjaxController->getPurchaseOptions()#6 /home/deb97817/domains/store.drifting.media/public_html/ttg-be/framework/Framework.php(124): Controller->dispatch(Array)#7 /home/deb97817/domains/store.drifting.media/public_html/ttg-be/cart/index.php(25): Framework->route()#8 {main}|URL: /ttg-be/cart/index.php


can you give me any insights how to get it working?

Offline

#2 2016-04-20 00:46:27

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: ERROR: Function name must be a string

there was another post recently that had to do with Parsedown. Make sure your using the very latest version of TTG-BE, version 2.0.5a
http://ce4.theturninggate.net/docs/doku … _changelog


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2016-04-20 00:57:23

PatrickV
Member
Registered: 2014-03-20
Posts: 13

Re: ERROR: Function name must be a string

I think that is my problem, that i am using the 2.0.5 version.

now the next thing will be to download the new version.
i can only download the 2.0.5 version and not the 2.0.5a version?



2016-04-19%2017_52_17-Mail.png

2016-04-19%2017_51_05-Mail.png

Offline

#4 2016-04-20 01:21:18

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: ERROR: Function name must be a string

I believe that is the latest version. Looks like it didn't get appended with the "a".
Give it a try. See the change log or the readme file for update instructions.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2016-04-20 14:04:59

PatrickV
Member
Registered: 2014-03-20
Posts: 13

Re: ERROR: Function name must be a string

don't think it is the 2.0.5a version

The readme.txt gives the following changelog.

2016-04-20%2007_00_51-readme.txt%20-%20Notepad.png

Offline

#6 2016-04-20 17:36:15

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: ERROR: Function name must be a string

Did you try it to see if it solves the problem?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2016-04-20 17:39:30

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: ERROR: Function name must be a string

See this post on the same issue (scroll to the end):
http://community.theturninggate.net/vie … hp?id=6256


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2016-04-20 18:24:53

PatrickV
Member
Registered: 2014-03-20
Posts: 13

Re: ERROR: Function name must be a string

I did not have time to check it, will do that tonight when i am back home

Offline

#9 2016-04-21 00:08:23

PatrickV
Member
Registered: 2014-03-20
Posts: 13

Re: ERROR: Function name must be a string

just check by re-downloading the file and updating the server.
My problem still exits. The Parsedown.php does not seem to be updated in my download!
It is still 1403 lines long.

* The older version of Parsedown.php (which is 1403 lines long) was compatible with PHP versions lower than 7.
* The newer version of Parsedown.php (which is about 1540 lines long) is compatible with PHP versions above 5.2.  (This is something that I only recently became aware of)

this does indicate that my download is still the old version

Offline

#10 2016-04-21 00:22:18

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: ERROR: Function name must be a string

Yeah, I just noticed that. I mentioned that to Ben in that other post.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#11 2016-04-21 07:17:21

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: ERROR: Function name must be a string

It looks like 205a hasn't been uploaded to the old store.  I'm no longer able to update files there, so I've emailed this to Patrick.

Offline

#12 2016-04-21 07:21:16

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: ERROR: Function name must be a string

Whew! I though perhaps my mind was going there for a minute wink


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2016-04-21 14:04:49

PatrickV
Member
Registered: 2014-03-20
Posts: 13

Re: ERROR: Function name must be a string

Thank you ben, will try it tonight when i am back home.

Offline

#14 2016-04-21 17:06:59

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: ERROR: Function name must be a string

My apologies. I hadn't realized the old distribution platform hadn't been updated with the latest TTG-BE package. I've now made the necessary updates. Sorry for any inconvenience.


Matt

The Turning Gate, http://theturninggate.net

Offline

#15 2016-04-21 23:31:18

PatrickV
Member
Registered: 2014-03-20
Posts: 13

Re: ERROR: Function name must be a string

thank you all, it works now.

now i can stop head scratching wat i did wrong.

Offline

Board footer

Powered by FluxBB