-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax Highlighting no longer works on my site #22
Comments
|
Or it maybe some kind of conflict with some other plugin? What other plugins do you use? Actually, In your site PHP code for highlighting didn't work and didn't mark the code as it expected. |
I checked through all the error logs I could find on my BlueHost hosting
site. I couldn't find anything recent at all. I did find some related
errors dated 25 August 2020 that showed some Crayon Syntax Highlighter
errors, but nothing since then.
Anything else I can check? As you suggested, I did try a brand-new post
<https://www.fpaynter.com/2020/09/test-post/>with just one line added to a
Crayon Syntax Highlighter block
Frank
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation
failed: invalid range in character class at offset 4 in
/home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php
on line 340
…On Tue, Sep 15, 2020 at 12:03 AM urvanov.ru ***@***.***> wrote:
Or it maybe some kind of conflict with some other plugin? What other
plugins do you use?
Actually, In your site PHP code for highlighting didn't work and didn't
mark the code as it expected.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T326FYVULPN6L44MAFTLSF3RQHANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
As a test, I went back and disabled every plugging that I thought might
even remotely have an effect on formatting, and tried to add a Crayon block
to a completely new post <https://www.fpaynter.com/2020/09/test-post-2/>.
The Crayon window displayed properly and I saved a line of code, but it
still didn't display properly.
The only remaining active plugins are
Kento Post View Counter
Limit Login AttemptsReally Simple SSL
Frank
…On Tue, Sep 15, 2020 at 10:34 AM Frank Paynter ***@***.***> wrote:
I checked through all the error logs I could find on my BlueHost hosting
site. I couldn't find anything recent at all. I did find some related
errors dated 25 August 2020 that showed some Crayon Syntax Highlighter
errors, but nothing since then.
Anything else I can check? As you suggested, I did try a brand-new post
<https://www.fpaynter.com/2020/09/test-post/>with just one line added to
a Crayon Syntax Highlighter block
Frank
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
[25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
On Tue, Sep 15, 2020 at 12:03 AM urvanov.ru ***@***.***>
wrote:
> Or it maybe some kind of conflict with some other plugin? What other
> plugins do you use?
>
> Actually, In your site PHP code for highlighting didn't work and didn't
> mark the code as it expected.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#22 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA6T326FYVULPN6L44MAFTLSF3RQHANCNFSM4RLXVHSA>
> .
>
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
I figured out how to get an error log monitor going, and here are a couple
of relevant errors from the log. Does this help?
-
Sep 15, 16:13:16
Notice: Trying to get property 'comment_ID' of non-object
in /home4/gfpbridg/public_html/wp-content/plugins/urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-plugin.php
on line 714
- <https://www.fpaynter.com/wp-admin/index.php#>
Sep 15, 16:13:16
Notice: Trying to get property 'comment_ID' of non-object
in /home4/gfpbridg/public_html/wp-content/plugins/urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-plugin.php
on line 724
TIA,
Frank
…On Tue, Sep 15, 2020 at 10:44 AM Frank Paynter ***@***.***> wrote:
As a test, I went back and disabled every plugging that I thought might
even remotely have an effect on formatting, and tried to add a Crayon block
to a completely new post <https://www.fpaynter.com/2020/09/test-post-2/>.
The Crayon window displayed properly and I saved a line of code, but it
still didn't display properly.
The only remaining active plugins are
Kento Post View Counter
Limit Login AttemptsReally Simple SSL
Frank
On Tue, Sep 15, 2020 at 10:34 AM Frank Paynter ***@***.***> wrote:
> I checked through all the error logs I could find on my BlueHost hosting
> site. I couldn't find anything recent at all. I did find some related
> errors dated 25 August 2020 that showed some Crayon Syntax Highlighter
> errors, but nothing since then.
>
> Anything else I can check? As you suggested, I did try a brand-new post
> <https://www.fpaynter.com/2020/09/test-post/>with just one line added to
> a Crayon Syntax Highlighter block
>
> Frank
>
>
>
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
> [25-Aug-2020 01:49:03 UTC] PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
>
>
>
> On Tue, Sep 15, 2020 at 12:03 AM urvanov.ru ***@***.***>
> wrote:
>
>> Or it maybe some kind of conflict with some other plugin? What other
>> plugins do you use?
>>
>> Actually, In your site PHP code for highlighting didn't work and didn't
>> mark the code as it expected.
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#22 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AA6T326FYVULPN6L44MAFTLSF3RQHANCNFSM4RLXVHSA>
>> .
>>
>
>
> --
> G.Frank Paynter, PhD
> OSU ESL Research Scientist (ret)
> EM Workbench LLC
> 614 638-6749 (cell)
>
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
@paynterf /home4/gfpbridg/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php crayon-syntax-highlighter/crayon_langs.class.php You should completely remove old Crayon plugin and then install My forked version. Old Crayon plugin does not work anymore. |
And don't use standard Code block in Gutenberg. Use Urvanov Syntax Highlighter block. |
Hmm, I thought I *had* completely removed the old plugin. Here's a
screenshot of all my plugins, and I don't see anything but your syntax
highlighter plugin (I do have a 'Simple Code Block' plugin installed, but I
never activated it).
I have lots of old posts that use the old Crayon plugin; could that be the
issue? The old posts created using the old Crayon plugin still seem to
display OK
Frank
[image: Screenshot 2020-09-16 110326.jpg]
…On Wed, Sep 16, 2020 at 2:40 AM urvanov.ru ***@***.***> wrote:
And don't use standard Code block in Gutenberg. Use Urvanov Syntax
Highlighter block.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T3222PLKLXTSJOSFT363SGBMUTANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
@paynterf Old posts don't use old plugin. My forked version is the same as old crayon plugin for them. I only adapted it to the new version of PHP. And I added Gutenberg block Urvanov Syntax Highlighter. Check your plugins directory in wordpress. I think, It has crayon-syntax-highlighter inside it, because I see it in your log. Do you stil have this lines:
About https://www.fpaynter.com/2020/09/test-post-2/ . Look here If you old posts work, then new posts should work too. Mostly they use the same functionality. |
Here are two screenshots. One shows the plugins directory
(public_html\wp-admin\wp-content\plugins), and the other shows the
permissions for
wp-content/plugins/urvanov-syntax-highlighter/langs/default/default.txt
To create the Test2 post, I added a new post, typed 'Test2' for the title,
added a uranov syntax highlighter code block using the menu items at the
top (not using the '+' sign if that makes a difference), pasted in one line
of code, and then clicked on 'Save'.
Frank
…On Wed, Sep 16, 2020 at 12:49 PM urvanov.ru ***@***.***> wrote:
And I see errors:
[UrvanovSyntaxHighlighterUtil::lines()] 'Cannot read lines at
'default/default.txt'.
In your log file.
Do this file has read access?
wp-content/plugins/urvanov-syntax-highlighter/langs/default/default.txt
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T3265UIVJKPBRQFJFVUTSGDT75ANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
Sorry, but I don't see any screenshots in your comment. |
And I have an idea. The plugin have setting named "Capture inline tags". Can you check it, please? It should be enabled. It is in Plugins -> Installed -> Urvanov Syntax Highlighter -> Settings window. |
Yes, the 'Capture Inline Tags' setting is enabled.
Sorry about the screenshots. Here they are.
[image: Screenshot 2020-09-16 183555.jpg]
[image: Screenshot 2020-09-16 142247.jpg]
…On Wed, Sep 16, 2020 at 11:55 PM urvanov.ru ***@***.***> wrote:
And I have an idea. The plugin have setting named "Capture inline tags".
Can you check it, please? It should be enabled. It is in *Plugins* ->
*Installed* -> *Urvanov Syntax Highlighter* -> *Settings window*.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T324DOPMTRGY2QMKSELLSGGCEXANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
Lots of errors in the log that look like this:
-
Notice: Trying to get property 'comment_ID' of non-object
in /home4/gfpbridg/public_html/wp-content/plugins/urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-plugin.php
on line 714
- Ignore <https://www.fpaynter.com/wp-admin/index.php#>
Sep 16, 17:46:11
Notice: Trying to get property 'comment_ID' of non-object
in /home4/gfpbridg/public_html/wp-content/plugins/urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-plugin.php
on line 724
…On Thu, Sep 17, 2020 at 12:31 PM Frank Paynter ***@***.***> wrote:
Yes, the 'Capture Inline Tags' setting is enabled.
Sorry about the screenshots. Here they are.
[image: Screenshot 2020-09-16 183555.jpg]
[image: Screenshot 2020-09-16 142247.jpg]
On Wed, Sep 16, 2020 at 11:55 PM urvanov.ru ***@***.***>
wrote:
> And I have an idea. The plugin have setting named "Capture inline tags".
> Can you check it, please? It should be enabled. It is in *Plugins* ->
> *Installed* -> *Urvanov Syntax Highlighter* -> *Settings window*.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#22 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA6T324DOPMTRGY2QMKSELLSGGCEXANCNFSM4RLXVHSA>
> .
>
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
Sorry, I don't know how you attach images, but I still cannot see them |
… On Thu, Sep 17, 2020 at 1:23 PM urvanov.ru ***@***.***> wrote:
Sorry, I don't know how you attach images, but I still cannot see them
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T32YXSFBY5MPVRJ3DJTLSGJAXVANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
If it will help, I can add you as a user on my site
Frank
…On Thu, Sep 17, 2020 at 1:32 PM Frank Paynter ***@***.***> wrote:
Try this
https://drive.google.com/drive/folders/1eyhJU3WbOTfMcx81IyD_6iYWkpOklD7h?usp=sharing
On Thu, Sep 17, 2020 at 1:23 PM urvanov.ru ***@***.***>
wrote:
> Sorry, I don't know how you attach images, but I still cannot see them
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#22 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA6T32YXSFBY5MPVRJ3DJTLSGJAXVANCNFSM4RLXVHSA>
> .
>
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
I think it can help. |
What email address do you want me to use for the account?
Frank
…On Fri, Sep 18, 2020 at 3:25 PM urvanov.ru ***@***.***> wrote:
If it will help, I can add you as a user on my site
I think it can help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T327GML44YIU2QBBVRMTSGOX4JANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
I'll set up an admin user named 'uranov', with a password generated by my
LastPass program, and then email that to you at the email address you
provide. Therefore, that email address should be one that goes directly to
you, bypassing any lists or groups.
Frank
…On Fri, Sep 18, 2020 at 5:15 PM Frank Paynter ***@***.***> wrote:
What email address do you want me to use for the account?
Frank
On Fri, Sep 18, 2020 at 3:25 PM urvanov.ru ***@***.***>
wrote:
> If it will help, I can add you as a user on my site
>
> I think it can help.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#22 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA6T327GML44YIU2QBBVRMTSGOX4JANCNFSM4RLXVHSA>
> .
>
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
Looks like we really have some problem. It works in Twenty Fifteen theme, but does not work in Twenty Twenty theme. New posts don't highlight. As workaround it looks like after you press "Save" all posts created before that pressing start to work. Really strange. But don't worry. I will fix it. |
Looks like save_posts hook does not work: |
Looks like method is_admin returns empty for "Update" button when you save the post. Strange. It should return true for all wp-admin urls. |
Fedor,
Hmm, I'm running the Twenty-Twelve Child theme, *not* the Twenty-Twenty
theme. The theme has been updated many times, but I'm not sure it is still
fully compatible with WP5.5. Do I need to update to a more fully
compatible theme?
On another note, I tried adding a second Crayon block to your test post,
but got the same result as before - the code snippet displays as plain text
with no formatting. To do this, I added a Urvanov code block from the menu
at the top of the page, pasted the code snippet into the code window, and
then clicked on 'Save'. How did you get your block to work?
Also, I tried adding another block in a previous post (this one
<https://www.fpaynter.com/2020/09/replacing-wall-e2s-l298n-motor-drivers-with-adafruit-drv8871/>),
but got the same (unformatted) result. Here's the snippet I used:
ISR(TIMER5_COMPA_vect) //timer1 interrupt 1Hz toggles pin 13 (LED)
{
digitalWrite(TIMER_INT_OUTPUT_PIN, HIGH);
delayMicroseconds(10);
digitalWrite(TIMER_INT_OUTPUT_PIN, LOW);
bTimeForNavUpdate = true;
}
I saw your email about the is_admin() function, but I don't know what it
means
Frank
…On Sat, Sep 19, 2020 at 3:10 PM urvanov.ru ***@***.***> wrote:
Looks like save_posts hook does not work:
// For marking a post as containing a Crayon add_action('update_post',
'Urvanov_Syntax_Highlighter_Plugin::save_post', 10, 2);
add_action('save_post', 'Urvanov_Syntax_Highlighter_Plugin::save_post', 10,
2); add_filter('wp_insert_post_data',
'Urvanov_Syntax_Highlighter_Plugin::filter_post_data', '99', 2);
So the code does not mark as containing crayon. So, we don't see the
markup. Strange. Why it is only in Twenty Twenty. Do we have it in other
themes...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T32YZYKX6RRJ7DD2WQPLSGT6ZNANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
Fedor,
I just checked the compatibility of the Twenty-Twelve theme. It has been
recently updated (August 2020) and appears to be completely compatible with
WP 3.5+. Maybe something I did in the Child theme?
Frank
…On Sat, Sep 19, 2020 at 3:39 PM Frank Paynter ***@***.***> wrote:
Fedor,
Hmm, I'm running the Twenty-Twelve Child theme, *not* the Twenty-Twenty
theme. The theme has been updated many times, but I'm not sure it is still
fully compatible with WP5.5. Do I need to update to a more fully
compatible theme?
On another note, I tried adding a second Crayon block to your test post,
but got the same result as before - the code snippet displays as plain text
with no formatting. To do this, I added a Urvanov code block from the menu
at the top of the page, pasted the code snippet into the code window, and
then clicked on 'Save'. How did you get your block to work?
Also, I tried adding another block in a previous post (this one
<https://www.fpaynter.com/2020/09/replacing-wall-e2s-l298n-motor-drivers-with-adafruit-drv8871/>),
but got the same (unformatted) result. Here's the snippet I used:
ISR(TIMER5_COMPA_vect) //timer1 interrupt 1Hz toggles pin 13 (LED)
{
digitalWrite(TIMER_INT_OUTPUT_PIN, HIGH);
delayMicroseconds(10);
digitalWrite(TIMER_INT_OUTPUT_PIN, LOW);
bTimeForNavUpdate = true;
}
I saw your email about the is_admin() function, but I don't know what it
means
Frank
On Sat, Sep 19, 2020 at 3:10 PM urvanov.ru ***@***.***>
wrote:
> Looks like save_posts hook does not work:
> // For marking a post as containing a Crayon add_action('update_post',
> 'Urvanov_Syntax_Highlighter_Plugin::save_post', 10, 2);
> add_action('save_post', 'Urvanov_Syntax_Highlighter_Plugin::save_post', 10,
> 2); add_filter('wp_insert_post_data',
> 'Urvanov_Syntax_Highlighter_Plugin::filter_post_data', '99', 2);
> So the code does not mark as containing crayon. So, we don't see the
> markup. Strange. Why it is only in Twenty Twenty. Do we have it in other
> themes...
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#22 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA6T32YZYKX6RRJ7DD2WQPLSGT6ZNANCNFSM4RLXVHSA>
> .
>
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
I found a problem. It is not with the theme. Crayon uses is_admin() to check if it is admin panel. But Gutenber uses REST API to save posts. So is_admin does not work. Strange that it worked before. I found the solution and I will make and update tomorrow. |
WordPress/gutenberg#11138 |
Fedor,
Thanks! I know this wasn't the way you had planned to spend your Saturday,
so I REALLY appreciate it!
I'll keep your user alive on my site as long as you would like in case you
need to test your fixes.
Regards,
Frank
…On Sat, Sep 19, 2020 at 3:56 PM urvanov.ru ***@***.***> wrote:
WordPress/gutenberg#11138
<WordPress/gutenberg#11138>
It is link for me. Just for history.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T327ADP6LXJWVRUN35BTSGUEGXANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
I fixed it. |
Fedor,
I see where it appears to display properly on the Test2 post, but it still
doesn't display properly on my latest robot post. To test, I removed and
then re-added the second code snippet from the top, and then added a
completely new one at the bottom. Neither snippet displayed properly.
See this post
<https://www.fpaynter.com/2020/09/replacing-wall-e2s-l298n-motor-drivers-with-adafruit-drv8871/>
for the results.
Frank
…On Sun, Sep 20, 2020 at 9:04 AM urvanov.ru ***@***.***> wrote:
I fixed it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T32Z42DHDYMIWZ35YWQLSGX4U7ANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
Fedor,
See this post <https://www.fpaynter.com/2020/09/test-post-3/>. A newly
created post where I attempted to insert a Urvanov Syntax Highlighter block
Frank
…On Sun, Sep 20, 2020 at 9:23 AM Frank Paynter ***@***.***> wrote:
Fedor,
I see where it appears to display properly on the Test2 post, but it still
doesn't display properly on my latest robot post. To test, I removed and
then re-added the second code snippet from the top, and then added a
completely new one at the bottom. Neither snippet displayed properly.
See this post
<https://www.fpaynter.com/2020/09/replacing-wall-e2s-l298n-motor-drivers-with-adafruit-drv8871/>
for the results.
Frank
On Sun, Sep 20, 2020 at 9:04 AM urvanov.ru ***@***.***>
wrote:
> I fixed it.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#22 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA6T32Z42DHDYMIWZ35YWQLSGX4U7ANCNFSM4RLXVHSA>
> .
>
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
Sorry, but you used paragraph block not special block. There two types of code:
Inline highlighting is made by pressing button in the toolbar of paragraph block Block code is made by adding special block like in the picture: I think I should write some article about it. Or maybe I should write somewhere in the plugin description.. |
I updated the post. https://www.fpaynter.com/2020/09/test-post-3/ Use it as example.. I really think, that a lot of people need explanation about this two types. I will definitely write about. |
Fedor,
When I click on the '+' to start a new special block, and then select
'Urvanov Syntax Highlighter', I don't see the code entry screen - all I see
is a thin blue line across the post text area. When I change to 'code
view', I see the following:
<!-- wp:urvanov-syntax-highlighter/code-block -->
<div class="wp-block-urvanov-syntax-highlighter-code-block"></div>
<!-- /wp:urvanov-syntax-highlighter/code-block -->
I can get properly formatted code by copying the start and end lines from a
successful 'Urvanov Syntax Highlighter' block and then copy/pasting my code
in between, but so far that seems the only way to make it work
I did manage to get one highlighter block entered, and it displays somewhat
correctly in edit mode. However, in preview mode all the code is on one
line. It looks like the comment line at the end of the first line of code
has convinced the parser that everything afterwards is part of the comment
:-(.
Anyway, it's still not usable for us mere mortals - sorry :-(
Frank
…On Sun, Sep 20, 2020 at 12:38 PM urvanov.ru ***@***.***> wrote:
I updated the post. https://www.fpaynter.com/2020/09/test-post-3/
Use it as example..
I really think, that a lot of people need explanation about this two
types. I will definitely write about.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T32Z4TULP3ICDXHWSWQDSGYVWXANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
@paynterf You should use button in the toolbar of the new special block to open the dialog: |
Fedor,
I am using the toolbar button, but I still don't get the expected display
when I paste in some code and click on 'Save'.
Are you able to consistently get the correct display in Preview and View
(after Update) when you create a USH block and paste in some code? If so,
I'll need better directions, because I can't.
This is very frustrating because prior to the advent of Guttenberg, I used
the old Crayon Syntax Highlighter in just about every post, and it was as
simple as 1-2-3.
Frank
…On Mon, Sep 21, 2020 at 12:25 AM urvanov.ru ***@***.***> wrote:
@paynterf <https://github.com/paynterf> You should use button in the
toolbar of the new special block to open the dialog:
https://freeimage.host/i/2uKUQ9
Yes, You are right. That thing need some tutorial.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T3277KYPIDLM2N3VFMQLSG3IULANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
@paynterf I sent you e-mail with video. |
Fedor,
Here's what happens on my PC. Can you tell what I'm doing wrong?
Frank
…On Mon, Sep 21, 2020 at 2:07 PM urvanov.ru ***@***.***> wrote:
@paynterf <https://github.com/paynterf> I sent you e-mail with video.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T32Z2WHWZGZWYCVJ6YR3SG6I6ZANCNFSM4RLXVHSA>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
@paynterf Sorry, but you didn't attach anything to your previous comment on github. |
We fixed the bug and we created some tutorial video in the description page: |
I have been using syntax highlighting for several years now, but recently moved from Classic Editor to Gutenberg Blocks. Now I can't get syntax highlighting block to work - it just displays plain text with no formatting. See this post and this post (towards the bottom of the post) for examples
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: