Parse error: syntax error, unexpected '[', expecting ')' in

Posted in: Newspaper
Post count: 3

Hello

I’m having an error when I install the theme on my page:

Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /home/storage/3/d0/69/metropolemagazine/public_html/wp-content/plugins/td-composer/includes/tdc_util.php on line 592

I followed these two tutorials and could not solve them.
https://forum.tagdiv.com/install-via-wordpress/
https://forum.tagdiv.com/install-via-ftp/

How can I solve this problem?

Thank you

Post count: 5

Same Here. Did something break with this latest update? It worked for in all other pervious versions. tdc_util.php on line 592 is the same error I received.

Post count: 35449

You are probably uploading the whole theme package. You have to upload only the theme zip file, not the whole package which contains other items
https://help.market.envato.com/hc/en-us/articles/202821510-Theme-is-missing-the-style-css-stylesheet-error

These are the theme install methods with steps for each method
https://forum.tagdiv.com/install-via-wordpress/
https://forum.tagdiv.com/install-via-ftp/

Let us know the results.

Thanks for your understanding!

Post count: 5

No, I’ve unzipped the whole package and the theme installs. It’s the (td-composer) plugin install that fails.
I’ve attempted to install the this plugin two ways;
1. Install from the Newspaper dashboard under the plugin tab.
2. FTP the zipped (td-composer) to the plugin folder and attempted to activate and still gets the tdc_util.php on line 592 error.

Post count: 3

Hello

These procedures did not work … I did the step by step but the error continues to appear after activating the theme.
Follow the pictures:

http://www.metropolemagazine.com.br/wp-content/uploads/2018/11/WhatsApp-Image-2018-11-14-at-13.42.27.jpeg

http://www.metropolemagazine.com.br/wp-content/uploads/2018/11/WhatsApp-Image-2018-11-14-at-13.41.47.jpeg

Post count: 5

Yes that is correct. I agree with Meon. It’s after activation you get the error and wordpress breaks. Only If you uninstall it using FTP File manager, wordpress go back to normal and the theme works without the theme composer plugin activated.

Post count: 3

What should I do? If installing a previous version of Newspapper resolves?

Post count: 5

I’d wait until Calin responds. Newspaper 9 has newer features and templates. Hey should get back to us soon.

Post count: 35449

Hi @meon and @cfriday ,

First please check the Requirements for Newspaper and make sure that you have configure them correctly ( like in the guide ).
Most of time this is happening because the wp_memory_limit is too low.
Let us know the results.

Thank you for your understanding.

Post count: 5

Meon, Found the fix.

1. Go the the File manager.
2. Look to the top right Cog “settings” Select
3. Check the box “Show hidden files” then Save.
4. Go to the file path public_html > wp-admin
Look to the top Left and select + File
5. Create PHP.INI file
Insert the following:

safe mode = Off (cannot adjust)
memory_limit = 256M (MAXIMUM)
max_execution_time = 30 (MAXIMUM in seconds)
max_input_time = 60 (MAXIMUM in seconds)
post_max_size = 64M (MAXIMUM)
upload_max_filesize = 64M (MAXIMUM)
enable_dl = Off (cannot adjust)

Save

Make sure to also update your Php to 5.6.

Hope this helps.
Chris

Post count: 2

I’ve got the same problem after clean install. I’ve used both installation methods. Memory_limit set to 256M

I’ve just bought theme and I’m very upset, guys

  • This reply was modified 7 years by Joe Boro.
Post count: 35449

Hi,

Most important, please be sure to check the updated theme requirements guide
https://forum.tagdiv.com/requirements-for-newspaper/
Increase all the parameters if it’s the case.
WP_MEMORY_LIMIT try to increase it to a value of double you already have if possible.
https://www.screencast.com/t/sQswe1SWR
https://www.screencast.com/t/k4DnhgVBJ

Thank you for your understanding.

Post count: 2

I’ve increased limit to 512M
Still doesn’t work: [Thu Dec 06 05:40:42 2018] [error] [client 195.64.206.252] PHP Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in /var/www/boro.su/data/www/nov.boro.su/wp-content/plugins/td-composer/includes/tdc_util.php on line 592

Post count: 35449

Hi Joe Boro,

Did you check all the settings, like php version and others?

You can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thank you.

Post count: 1

Hi all,
I have the same issue.
I upgraded from version 7 to 9.2 and got the same error.

If I delete td composer plugin and go to “System Status” page I see that my php version is 5.3.29. and but onmouseover message says that ‘You should have PHP version 5.2.4 or greater (recommended: PHP 5.4 or greater)’.

So, php version is an issue.
What is the latest version of newspaper theme (or latest version of td composer plugin) that can be used with 5.3.29 version of php?

Thank you.

Post count: 35449

Hi,

Please notice that this is a very old php version.
To run WordPress we recommend your host supports: -> https://wordpress.org/about/requirements/
try to make update to php at list 5.6 ( requirements ), please contact your host if you can not update the php version.

Thank you for your understanding.

Viewing 16 posts - 1 through 16 (of 16 total)
The forum ‘Newspaper’ is closed to new topics and replies.