-
Notifications
You must be signed in to change notification settings - Fork 23
Cannot install, disable, or uninstall extension #15
Comments
Which version of Symphony ? Which version of PHP ? |
Sorry, I forgot to include these important details: Symphony version: 2.3.1 |
Symphony 2.3.1 won't work with 5.6.x (so use 5.3.29 instead)
Finally, AFAICT, the only How can $handle be boolean blows my mind... Maybe try to replace it with if (!($handle = fopen($file, $mode))) { ? |
2.1.1 is out with the saveConfig fix... |
@nitriques Thanks for the suggestion and for the fix :) I'll let you know what happens. |
@finferflu my pleasure 😄 |
I just tried by modifying line 837 in
Additionally, I have tried to remove the mailchimp folder from the extensions folder, and now Symphony is just blank, showing the above error whenever I try to load the page. I have reverted the changes in |
To make the Symphony install work again, go in the DB, the table sym_extensions and delete the row holding the mailchimp extension. As for your fwrite error, I am speechless since I can't reproduce it... |
Also, can you confirm that the file is writeable ? |
Actually, the problem was that the Symphony configuration file was completely blank, something must have emptied it as I tried to uninstall the mailchimp extension. Fortunately I had a backup, and after I restored it Symphony is working again. Back to the original issue, the strange thing is that I can see that the extension is enabled in the database, however nothing is really showing up in the Preferences page… |
Which file should be writable (I assume by the web server)? Thanks! :) |
manifest/config.php and yes by the user running the php process (which can be different from the user running apache) |
Yes, it is. PHP is running as an Apache module, and the Apache process is owned by my user. |
And you're back with the fwrite error ? Can you try to delete the row in the extension table and install from scratch ? |
Yes, I'm back to that error. I have tried removing that row from the database and I have installed from scratch both with the original line in class.general.php and the modified line you suggested. Nothing seems to help so far :( |
:( Let me recapitulate:
If that 100% correct, can you please try to change the same line to if (($handle = fopen($file, $mode)) === false) { Also, could you try to var_dump the parameter ? (just before the fopen if) var_dump($file, $data, $perm, $mode);die; |
That is 100% correct although I'm not sure about what the extension should do in the background as it is being installed (from what you say I suppose it should write something to config.php), all I know is that I can't find any Mailchimp options in the Symphony Preferences page. Anyway, I've edited line 837 in class.general.php just as you instructed, and I got the same |
OK, what you said about the extension writing to config.php just opened my eyes. I double checked the permissions, and while config.php itself was writable by the web server, its containing folder wasn't. I have updated the permissions and the extension is finally enabled! :) On a side note, uninstalling the extension now doesn't empty the config.php file any longer. Thanks a lot for your help, and sorry for taking so long for figuring out this simple permissions issue (I don't know too much about the internals of Symphony unfortunately). |
I just wanted to mention that when I tried to open the Events page, Symphony threw and error and I found that the file |
Also, the extension version shown in the Mailchimp event is outdated: "2.0 released on 16 November 2013". (I hope I'm paying back all the time you've wasted for me by finding these :) |
No problem! Glad you found out the problem. But it is still weird since there is a check about both the directory and the file (https://github.com/symphonycms/symphony-2/blob/2.3.1/symphony/lib/toolkit/class.general.php#L829).. I might log and issue in the core...
It is, but as a git submodule, so you need to *EDIT: * just went to check the .zip download and it's missing. DAMN. Thanks for reporting! |
Finally, there was a bug in the write function in Symphony 2.3 (that's where the fwrite error comes from) and it has been fixed. Pffffeeewww!! |
Oh I see, thanks for the heads up! :) |
Hello,
When I try to enable/install or disable this extension I get the following error on the top of the page:
Nothing shows up in the PHP error log.
If I try to actually uninstall it (after the above error the extension name turns black, as if it was installed, however there are no Mailchimp options in the Symphony Preferences page), I get a blank page and this shows up in the PHP error log:
Could you please help me out?
Thank you :)
The text was updated successfully, but these errors were encountered: