angell-co / Pimp-My-Matrix

A plugin for Craft that lets you enhance a busy Matrix field and organise block types
MIT License
60 stars 5 forks source link

HTML Parse Error on database migration #14

Closed tyler-deboer closed 9 years ago

tyler-deboer commented 9 years ago

I installed a new version of Craft on a staging server and imported my SQL database in from my .dev local environment (where PMM is working great). Now when I try loading a page I'm getting this error:

Parse error: syntax error, unexpected '[' in /var/www/html/craft/plugins/pimpmymatrix/services/PimpMyMatrixService.php on line 142

I'm guessing this had to be because of a database issue, because it asked me to update my database immediately when I went to the Craft Control Panel on the new server after I cloned all the necessary files and imported the database. Any ideas on how to start fresh with PMM? Are there certain DB tables I need to reset and/or delete?

joshangell commented 9 years ago

Hmm weird. I'm not totally sure I understand what exactly is going on here but all the tables you need to hunt down are as follows:

Let me know how that goes!

joshangell commented 9 years ago

Hey @tyler-deboer any luck with this? Can I close the issue?

tyler-deboer commented 9 years ago

I think so yeah! Cleared all the related tables/rows from the database, reinstalled, and everything worked great. Not sure what happened on the migration but it must have been something on my end. Thanks!

joshangell commented 9 years ago

No worries, glad you got it sorted :)