What version that works with PHP 5.2?
-
I only have PHP 5.2 for now on my hosting server. //i tried using version 1.5 but I didn’t get any extra option in the post page to add code highlighting. What version could I use with PHP 5.2?
-
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).
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?
Yes, 1.5 is the last version which will work with PHP5.2.
The shortcodes will also work with the latest Enlighter release π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?
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 π<?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
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…
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]
can you provide a testcase (link) ?
Sure, it’s just my blog. Here’s a link with one js tag: link-removed
currently the Enlighter Plugin seems disabled ?
Agh! Not sure why it got disabled, because of rename maybe… It works now π Thanks for your help!
No Problem! π
I have to add a notice, that a renaming is required when using the github downloadGood 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?
I’m sorry but Inline-Syntax-Highlighting is not available in this old version.
- The topic ‘What version that works with PHP 5.2?’ is closed to new replies.