albertalbert Posted October 17, 2012 Share Posted October 17, 2012 I created a module (called send code) for my store following the tutorial in the documentation. The module is working fine, but now, when I go to the modules page in the admin area, I get this error message: Parse error: syntax error, unexpected '?' in /homepages/44/d**********/htdocs/tests/prestashop/classes/module/Module.php(1028) : eval()'d code on line 1 The following module(s) could not be loaded: sendcode (parse error in /modules/sendcode/sendcode.php) sendcode (class missing in /modules/sendcode/sendcode.php) I've checked and re-checked the syntax and everything seems fine. This error is new, when I first installed the module I could see it in the modules list, now it's not there. But it still works in the store website!!! Any ideas of what might be happening? Link to comment Share on other sites More sharing options...
sharif854 Posted October 18, 2012 Share Posted October 18, 2012 can you see us the _construct code of your module? Link to comment Share on other sites More sharing options...
albertalbert Posted October 18, 2012 Author Share Posted October 18, 2012 can you see us the _construct code of your module? Well, so what I've done is to create a new module from scratch (coping and emptying the php and tpl files from an existing one). Then I've copied the contents of the old module into the new one, without changing a single coma, and now I don't get that error and the module shows again in the list of modules... It doesn't make any sense to me, but oh well, it works fine now, let's see for how long. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now