[SOLVED]: syntax error, unexpected '['

  • sergiomariz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago - 9 years 7 months ago #2085 by sergiomariz
syntax error, unexpected '[' was created by sergiomariz
I installed the mefgfork2 and receive the folowing error when try to acess K2 via frontend or backend:
"Parse error: syntax error, unexpected '[' in xxx/public_html/plugins/k2/mefgfork2/mefgfork2.php on line 46"
The website url is:
anpocs.com/index.php
The menuitem to acess the K2 items is: anpocs.com/index.php/ciencias-sociais/periodicos-eletronicos-2
Last edit: 9 years 7 months ago by sergiomariz.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #2086 by mmmaug1977
Replied by mmmaug1977 on topic syntax error, unexpected '['
Hello Sergio,

Please let me know the versions of Joomla, K2 and PHP you are using.
Also, are you using Filter for K2?

Please Log in or Create an account to join the conversation.

  • sergiomariz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #2087 by sergiomariz
Replied by sergiomariz on topic syntax error, unexpected '['
Hi,
PHP Version: 5.3.29
JOOMLA: 3.4.1 Stable [ Ember ] 21-March-2015 20:30 GMT
K2: V2.6.9
Filter for K2: StyleWare V3.2.7
I have tried to disable the filter for k2 but still does not work,
Thanks,
Sergio

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #2088 by mmmaug1977
Replied by mmmaug1977 on topic syntax error, unexpected '['
Please edit the mefgfork2.php and replace the code at line no: 46
Code:
$caller = debug_backtrace()[4];

With these two lines:
Code:
$callers = debug_backtrace(); $caller = $callers[4];

Then save and let me know the result.

Please Log in or Create an account to join the conversation.

  • sergiomariz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #2089 by sergiomariz
Replied by sergiomariz on topic syntax error, unexpected '['
Its working fine, now.
Tank you very much.
Sergio

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum