Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    I’m sorry but it is not possible to use the Plugin with a PHP Version < 5.3 – Enlighter uses some OOP features (namespaces, ..) which are necessary.

    The old Enlighter Plugin Versions didn’t support the Visual Editor integration – it’s only possible to use the shortcodes. But be aware of using such old versions (@see changelog).

    I would recommend you to upgrade your PHP installation to the current release (v5.6.3).

    Thread Starter dominicme

    (@dominicme)

    I would love to upgrade but it’s up to my hosting company and I am not sure if they will upgrade just because I ask πŸ™ If I use an older version and then upgrade to the latest, will there be issues such as due to different tag naming? If not then I might just use an older version for now. Is version 1.5 the latest to work with PHP 5.2?

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    Yes, 1.5 is the last version which will work with PHP5.2.
    The shortcodes will also work with the latest Enlighter release πŸ™‚

    Thread Starter dominicme

    (@dominicme)

    I tried adding the following with no visual effect:

    [js]test[/js]

    From the documentation on github it should be all that’s required. What am I missing?

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    It should work out of the box – maybe the call to the WordPress hook <?php wp_head(); ?> is missing in the header.php file ?
    I’ve just tested Enlighter 1.5 with the current WordPress release – it works πŸ™‚

    Thread Starter dominicme

    (@dominicme)

    <?php wp_head(); ?> is present in WP->Editor->header.php file if that’s the header file you meant. Also I console view I see some extra syntax which should mean it is working but I still dont see any visual change even when font is changed to 22px.

    With [js]test[/js] in the post this is the output in chrome console.

    <pre data-enlighter-language="js" data-enlighter-theme="standard" data-enlighter-title="" data-enlighter-highlight="" class="EnlighterJSRAW">test</pre>

    I also get these 3 errors:

    GET http://site.com/wp-content/plugins/enlighter/resources/EnlighterJS.yui.css?ver=4.0.1
    (index):53
    GET http://site.com/wp-content/plugins/enlighter/resources/EnlighterJS.yui.js?ver=4.0.1
    (index):52
    GET http://site.com/wp-content/plugins/enlighter/resources/mootools-core-1.4.5-full-nocompat-yc.js?ver=4.0.1
    Plugin Author Andi Dittrich

    (@andi-dittrich)

    the plugin seems to work fine (correct html structure created). but the enlighter resources (EnlighterJS.yui.css, EnlighterJS.yui.js, MooTools) – which are the core of the highlighter – didn’t seem to be web-accessable.

    please check if these files are available – maybe you need to change the file/directory permissions…very strange…

    Thread Starter dominicme

    (@dominicme)

    Ok, so the issue was that the folder is named “WordPress.Enlighter-1.5” and not “enlighter”. Renaming the folder fixes all errors.

    There is still no effect visible. The tags appear as text like so even when added in text editor and not visual editor:

    [js]test[/js]

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    can you provide a testcase (link) ?

    Thread Starter dominicme

    (@dominicme)

    Sure, it’s just my blog. Here’s a link with one js tag: link-removed

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    currently the Enlighter Plugin seems disabled ?

    Thread Starter dominicme

    (@dominicme)

    Agh! Not sure why it got disabled, because of rename maybe… It works now πŸ™‚ Thanks for your help!

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    No Problem! πŸ˜‰
    I have to add a notice, that a renaming is required when using the github download

    Thread Starter dominicme

    (@dominicme)

    Good idea! Also I assume in 1.5 there is no inline option as well as new line at the same time? Is it one or the other or is there a way to specify inline/new line per each tag?

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    I’m sorry but Inline-Syntax-Highlighting is not available in this old version.

    @see https://wordpress.org/plugins/enlighter/changelog/

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘What version that works with PHP 5.2?’ is closed to new replies.