error in admin page after update Resolved
Product: Srizon Facebook Album - Category: Error Message - Ticket #3848

Ticket Posts (publicly viewable)

huanghau 4 days ago
huanghau avatar

thanks, it works now. This ticket can be closed.

Afzal Hossain (Support) 4 days ago
Afzal Hossain avatar

php 5.6 + supports [] syntax for array... previously it supported only array() function.

So if you're still on an older version of php, changing it to 5.6+ should solve the problem.

Some hosting let you keep multiple version of php and assign a different version to each site. I think in your case you're updated version isn't being used by your site.

Another way to solve it is to change the code to support old syntax

so instead of 

                $tokens[$index]['albums'][] = ['title' => $item->title, 'id' => $item->id];

you may try

                $tokens[$index]['albums'][] = array('title' => $item->title, 'id' => $item->id);

and for the next line

                $tokens[$index]['galleries'][] = array('title' => $item->title, 'id' => $item->id);

 

huanghau 5 days ago
huanghau avatar

Already updated to last version, but the problem still occur.

I tried to remove this line and admin page can be accessed again :

if ($item->type == 'album') {
                $tokens[$index]['albums'][] = ['title' => $item->title, 'id' => $item->id];
            } else {
                $tokens[$index]['galleries'][] = ['title' => $item->title, 'id' => $item->id];
            }

 

what this line is for ? and is batch token can be work without this line code ?

thx

Afzal Hossain (Support) 6 days ago
Afzal Hossain avatar

Please update the php version

huanghau 6 days ago
huanghau avatar

my admin page get an error message after update the plugin

Parse error: syntax error, unexpected '[' in /home/sloki/user/k9896153/sites/hauwitohuang.com/www/wp-content/plugins/srizon-facebook-album-pro/admin/srizon-fb-token-extractor.php on line 43

 

Private Posts Section

Verify ownership of this ticket by providing the secret key for this ticket to view this area and add post/data to this ticket

Forgot the key?