- Posts: 3
- Thank you received: 0
[SOLVED]: syntax error, unexpected '['
- sergiomariz
- Topic Author
- Offline
- New Member
-
Less
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
"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.
- mmmaug1977
-
- Offline
- Moderator
-
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 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
-
Less
More
- Posts: 3
- Thank you received: 0
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
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.
- mmmaug1977
-
- Offline
- Moderator
-
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
With these two lines:
Then save and let me know the result.
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
-
Less
More
- Posts: 3
- Thank you received: 0
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
Tank you very much.
Sergio
Please Log in or Create an account to join the conversation.