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.
magic-plugin: Update?
Tagged:
2
Comments
Any news here?
The addon could not be enabled because it generated a fatal error:
FATAL ERROR IN: PHP.Gdn_ErrorHandler();
"Magic requires the Vanilla application version >= 2.0"
LOCATION: xxxxxx/forum/library/core/functions.general.php
> 351: for ($i = 0; $i < $Count; ++$i) {
> 352: $Operator = $Operators[$i];
> 353: $MatchVersion = $Versions[$i];
> 354: if (!version_compare($EnabledVersion, $MatchVersion, $Operator)) {
>>> 355: throw new Exception(
> 356: sprintf(
> 357: T('%1$s requires the %2$s %3$s version %4$s %5$s'),
> 358: $ItemName,
> 359: $RequiredItemName,
BACKTRACE:
[xxxxxx/forum/library/core/class.pluginmanager.php 413] PHP::CheckRequirements();
[xxxxxx/forum/applications/dashboard/controllers/class.settingscontroller.php 510] Gdn_PluginManager->TestPlugin();
[xxxxxx/forum/library/core/class.dispatcher.php 276] SettingsController->TestAddon();
[xxxxxx/forum/index.php 38] Gdn_Dispatcher->Dispatch();
All: I got this working by removing the extra line breaks and whitespace from the img and object/embed code in plugins/magic/default.php:
Combine lines 45-47: into one line: AND combine lines 60-67: into one line:
I deleted the line which checks the version, now it works.
I applied your changes but images still don't get embedded!
And: I also need this applied to older posts...
private $RegularYoutube = '/((http|ftp)\:\/\/)?([w]{3}\.)?(youtube\.)([a-z]{2,4})(\/watch\#\!v=)([a-zA-Z0-9_-]+)(\&feature=)?([a-zA-Z0-9_-]+)?/';
notice the change from \? to \#\!