Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Failed to enable the plugin
JoZ3_69
✭
This error appears when I try to enable the plugin:
Argument 1 passed to AdvertisementsPlugin_Repository::__construct() must be an instance of callable, instance of Closure given, called in /home/mysite/public_html/plugins/Advertisements/class.advertisements.plugin.php on line 46 and defined
Tagged:
0
Comments
Solved with last update (0.0.5)
I am also unable to get the plugin to activate (0.0.5). It is not visible under the Plugins listing. I'm using VF 2.1.5 with BitterSweet Theme. I have it in the plugins directory proper owner & permissions, but nothing comes up on the dashboard to manage or configure advertisements. I'm very interested in this plugin! Hope we can figure it out (=
you may not be able to do things properly, until you resolve your other server issues. and you will continue to have problems with just about everything, until you solve them.
http://vanillaforums.org/discussion/comment/221262/#Comment_221262
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Okay, same issue with apache & nginx and now my other issues have been resolved. I also was able to upgrade to 2.1.6.
When I enable the plugin, I see the menu on the left "Forum - Advertisements" but I see the following:
Is there any known plugins that fail with this plugin?
My list is:
Thanks!
The proper way to troubleshoot plugins is to turn them off one by one until you find the one that causes problems. Please make sure all of your plugins are updated or work with 2.1.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@vrijvlin okay, I disabled all the plugins except the login and profile extender. Same behavior.
Thanks for any advice.
Very strange indeed... I will try to get that to work see if I can...
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Looks like there is something - could you check if it is a "only" a styling problem by looking at the html? Maybe all the content is there but the CSS is corrupt
By the way: in the readme, the author says you have to create a GitHub issue to get support of him, because he will not track this forum.
I've just unzipped the file to my server and the file access rights were the reason why I didn't saw the file in the plugin list.
I've written a small script before to get the rights set up "correctly", maybe some others find it useful. It has to be saved in the Vanilla root folder
Forget my CSS question! Looking at the php source code of the view and at your screenshot makes me think you have a problem with phps short tags.
Try creating a test.php with following content to prove that:
This output will <?= 'not' ?> fail
Or simply add
short_open_tag=On
to your php.ini, restart php5-fpm and try again accessing the advertisment screenShort open tags are only required for PHP 5.3 and below. If you are using PHP 5.3 or below.. well.. scary. [:
And no, I don't monitor the forums often. If you're still having trouble with the plugin please open an issue and I can help debug it!