×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Error after update tp 4.0.3

Error after update tp 4.0.3 10 years 2 months ago #28100

  • achim glaab
  • achim glaab's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Hi,

after we installed the update to 4.0.3 we got this error, when adressing hotspots (mav view)

Parse error: syntax error, unexpected '[' in ########/components/com_hotspots/views/hotspots/tmpl/default.php on line 436

Error after update tp 4.0.3 10 years 2 months ago #28101

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Achim,
What php version are you running? On both my dev machine and our demo site version 4.0.3 doesn't create this error. Moreover line 436 doesn't contain any php code, so it should not end up in a syntax error?

Error after update tp 4.0.3 10 years 2 months ago #28102

  • achim glaab
  • achim glaab's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
we are usung PHP-Version 5.3.28

Error after update tp 4.0.3 10 years 2 months ago #28104

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'll need backend access + ftp access to debug this. Have no idea why it happens. Can you send them to This email address is being protected from spambots. You need JavaScript enabled to view it.? (let me know once you do)

Thanks,
Daniel

Error after update tp 4.0.3 10 years 2 months ago #28135

  • zivuska
  • zivuska's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hello,

I have exactly the same problem so I was wondering if this issue already got solved.
I get Internal server error on frontend of my site when choosing map view for hotspots and the following error in the error log: PHP Parse error: syntax error, unexpected '[' in XXXX/components/com_hotspots/views/hotspots/tmpl/default.php on line 440.
I'm using PHP 5.3, Joomla 2.5 and HotSpots 4.0.4 core version.

Best regards,

zivuska

Error after update tp 4.0.3 10 years 2 months ago #28136

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey!
Can someone provide me with access to his site? I don't have a server on which this is happening and I cannot fix this as I have no idea what's going on.
Regards,
Daniel

Error after update tp 4.0.3 10 years 2 months ago #28179

  • achim glaab
  • achim glaab's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Hello,

mail sent.

:)

Error after update tp 4.0.3 10 years 2 months ago #28189

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I have just pushed a new dev. release - it should fix the issue.

The problem is that you guys have asp tags enabled in your php.ini . The syntax for our javascript templates uses <% and php is trying to evaluate the content of those tags... I've changed our syntax to the mustache/handlebars style {{ }} and it should be fine now. Also please note that as per the PHP docs:
de1.php.net/manual/en/language.basic-syntax.phpmode.php

ASP style tags (example four) are only available when they are enabled via the asp_tags php.ini configuration file directive.

Note:

Using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP servers which are not under your control, because short tags may not be supported on the target server. For portable, redistributable code, be sure not to use short tags.


the recommendation is not to use this option...

Regards,
Daniel
The following user(s) said Thank You: zivuska

Error after update tp 4.0.3 10 years 2 months ago #28199

  • zivuska
  • zivuska's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi,

I disabled the asp tags in my php.ini file and the plugin is working now. Thank you for your help,

zivuska

Error after update tp 4.0.3 10 years 2 months ago #28205

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, the dev version no longer users the asp syntax <%, so it was not necessary to disable this option :) Just installing the dev. version would fix this.

Regards,
Daniel
  • Page:
  • 1
Time to create page: 0.168 seconds