• Please note during debugging I may or may not have wpmathpub enabled or not.

    Using WordPress version = 6.8.2 wpmathpub version = 2.0.4

    While I have wpmathpub enabled I found that when I go to baseURL/page/263 there would be no pagination numbers at the bottom of the page. Thus I coerced things by modifying the URL = baseURL/page/264. When I hit enter a blank page was returned and the error below was served. I then entered URL = baseURL/page/265 and it served a regular page up.

    The error returned from entering / hitting return on URL = baseURL/page/264 was

    : Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in
    /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php:1050
    Stack trace: 0 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1005): expression_math->dessine_expression(9.6) 1 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1232): expression_math->dessine(9.6) 2 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(967): expression_math->dessine_grandoperateur(’12’, ‘_integrale’) 3 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1020): expression_math->dessine(’12’) 4 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1005): expression_math->dessine_expression(’12’) 5 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1673): expression_math->dessine(’12’) 6 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1704): mathimage(‘int{}{}{E circ …’, ’12’, ‘https://www.ama…’) 7 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/wpmathpub.php(118): mathfilter(‘ int{}{}{E c…’, ’12’, ‘https://www.ama…’) 8 [internal function]: wpmathfilter(Array) 9 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/wpmathpub.php(132): preg_replace_callback(‘#\[pmath(\s+siz…’, ‘wpmathfilter’, ‘

    \r\n\t\xC3\xA2\xE2\x82\xAC\xE2\x80\xB9<…’) 10 /home/politico/amarketplaceofideas.com/wp-includes/class-wp-hook.php(324): to_phpmath(‘

    \r\n\t\xC3\xA2\xE2\x82\xAC\xE2\x80\xB9<…’) 11 /home/politico/amarketplaceofideas.com/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘

    \r\n\t\xC3\xA2\xE2\x82\xAC\xE2\x80\xB9<…’, Array) 12 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(281): apply_filters(‘the_content’, ‘

    \r\n\t\xC3\xA2\xE2\x82\xAC\xE2\x80\xB9<…’) 13 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(249): Hestia_Blog_Post_Layout->get_post_content() 14 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(220): Hestia_Blog_Post_Layout->get_theme_excerpt(‘default’) 15 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(66): Hestia_Blog_Post_Layout->render_post_body() 16 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(44): Hestia_Blog_Post_Layout->get_article(Array) 17 /home/politico/amarketplaceofideas.com/wp-includes/class-wp-hook.php(324): Hestia_Blog_Post_Layout->render(‘default’) 18 /home/politico/amarketplaceofideas.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 19 /home/politico/amarketplaceofideas.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 20 /home/politico/amarketplaceofideas.com/wp-content/themes/default/template-parts/content.php(12): do_action(‘hestia_blog_pos…’, ‘default’) 21 /home/politico/amarketplaceofideas.com/wp-includes/template.php(812): require(‘/home/politico/…’) 22 /home/politico/amarketplaceofideas.com/wp-includes/template.php(745): load_template(‘/home/politico/…’, false, Array) 23 /home/politico/amarketplaceofideas.com/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) 24 /home/politico/amarketplaceofideas.com/wp-content/themes/default/index.php(66): get_template_part(‘template-parts/…’) 25 /home/politico/amarketplaceofideas.com/wp-includes/template-loader.php(106): include(‘/home/politico/…’) 26 /home/politico/amarketplaceofideas.com/wp-blog-header.php(19): require_once(‘/home/politico/…’) 27 /home/politico/amarketplaceofideas.com/index.php(17): require(‘/home/politico/…’) 28 {main} thrown in /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php on line 1050

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 43 total)
  • Thread Starter phxfreddy

    (@phxfreddy)

    There is possible interplay of ck-editor-for-wordpress and wpmathpub

    • This reply was modified 8 months, 2 weeks ago by phxfreddy.
    Thread Starter phxfreddy

    (@phxfreddy)

    Further testing shows

    —————————- ck-editor-for-wordpress  AND  wpmathpub   experiments ————————

    •  ck-editor-for-wordpress  = enabled
    •  wpmathpub  = disabled 
    • —- Results —-
    •  ck-editor-for-wordpress   >>>  everything functions normally except CK has error flagged above it.

    ——————————————————————————————————

    •  ck-editor-for-wordpress  = disabled
    • wpmathpub  = enabled 
    • —- Results —-
    • Everything works normally except  /page/264    
    • Blog Entry: MOSFET Body Effect Factor – Substrate Bias Effects   >>> this renders
    • Blog Entry: MOSFET Depletion Region Width Xd   >>> this does not render and gives the big jumble error   AND   the progress spinner of /page/264 never stops spinning

    ——————————————————————————————————

    ——- Possible theme issue —— ( theme in use is “Hestia” ) ck-editor-for-wordpress  = disabled

    • wpmathpub  = disabled 
    • —- Results —-
    • progress spinner never stops spinning
    • youtube previews do not show up

    ——————————————————————————————————

    —– PlugIn Switching Issue —-

    • Switching wpmathpub between ON / OFF state flags the following error
    • Deprecated: Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /home/politico/amarketplaceofideas.com/wp-includes/functions.php on line 6121
    • This reply was modified 8 months, 2 weeks ago by phxfreddy.
    Thread Starter phxfreddy

    (@phxfreddy)

    I think I may have found a simpler set of circumstances to recreate the error.

    ————Theme switching errors with wpmathpub = activated ————-

    with wpmathpub = activated
    When I go to the Appearences >>> Themes the following error is flagged at the top of the page

    Deprecated: Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /home/politico/amarketplaceofideas.com/wp-includes/functions.php on line 6121

    In fact I now see that just going to my plugin page and just activating and deactivating the wpmathpub plugin flags this error

    Thread Starter phxfreddy

    (@phxfreddy)

    Went further: set up to log errors. The follow resulted from starting with wpmathpub disabled. Log was empty at that point. I then enabled then disabled the wpmathpub plugin and this was the resulting error log

    [19-Aug-2025 18:13:12 UTC] WordPress database error Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_unicode_ci,COERCIBLE) for operation ‘like’ for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
    FROM wp_posts
    WHERE 1=1 AND (((wp_posts.post_title LIKE ‘%致力於其目標%’) OR (wp_posts.post_excerpt LIKE ‘%致力於其目標%’) OR (wp_posts.post_content LIKE ‘%致力於其目標%’))) AND (wp_posts.post_password = ”) AND ((wp_posts.post_type = ‘attachment’ AND (wp_posts.post_status = ‘publish’)) OR (wp_posts.post_type = ‘page’ AND (wp_posts.post_status = ‘publish’)) OR (wp_posts.post_type = ‘post’ AND (wp_posts.post_status = ‘publish’)))

                     ORDER BY wp_posts.post_title LIKE '%致力於其目標%' DESC, wp_posts.post_date DESC
                     LIMIT 0, 10 made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts

    [19-Aug-2025 18:13:22 UTC] WordPress database error Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_unicode_ci,COERCIBLE) for operation ‘like’ for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
    FROM wp_posts
    WHERE 1=1 AND (((wp_posts.post_title LIKE ‘%дуже%’) OR (wp_posts.post_excerpt LIKE ‘%дуже%’) OR (wp_posts.post_content LIKE ‘%дуже%’)) AND ((wp_posts.post_title LIKE ‘%погані%’) OR (wp_posts.post_excerpt LIKE ‘%погані%’) OR (wp_posts.post_content LIKE ‘%погані%’)) AND ((wp_posts.post_title LIKE ‘%матусі%’) OR (wp_posts.post_excerpt LIKE ‘%матусі%’) OR (wp_posts.post_content LIKE ‘%матусі%’)) AND ((wp_posts.post_title LIKE ‘%актори%’) OR (wp_posts.post_excerpt LIKE ‘%актори%’) OR (wp_posts.post_content LIKE ‘%актори%’))) AND (wp_posts.post_password = ”) AND ((wp_posts.post_type = ‘attachment’ AND (wp_posts.post_status = ‘publish’)) OR (wp_posts.post_type = ‘page’ AND (wp_posts.post_status = ‘publish’)) OR (wp_posts.post_type = ‘post’ AND (wp_posts.post_status = ‘publish’)))

                     ORDER BY (CASE WHEN wp_posts.post_title LIKE '%дуже погані матусі актори%' THEN 1 WHEN wp_posts.post_title LIKE '%дуже%' AND wp_posts.post_title LIKE '%погані%' AND wp_posts.post_title LIKE '%матусі%' AND wp_posts.post_title LIKE '%актори%' THEN 2 WHEN wp_posts.post_title LIKE '%дуже%' OR wp_posts.post_title LIKE '%погані%' OR wp_posts.post_title LIKE '%матусі%' OR wp_posts.post_title LIKE '%актори%' THEN 3 WHEN wp_posts.post_excerpt LIKE '%дуже погані матусі актори%' THEN 4 WHEN wp_posts.post_content LIKE '%дуже погані матусі актори%' THEN 5 ELSE 6 END), wp_posts.post_date DESC
                     LIMIT 0, 10 made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts

    [19-Aug-2025 18:13:26 UTC] PHP Deprecated: Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /home/politico/amarketplaceofideas.com/wp-includes/functions.php on line 6121
    [19-Aug-2025 18:13:26 UTC] PHP Deprecated: Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /home/politico/amarketplaceofideas.com/wp-includes/functions.php on line 6121
    [19-Aug-2025 18:13:41 UTC] PHP Deprecated: Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /home/politico/amarketplaceofideas.com/wp-includes/functions.php on line 6121

    Thread Starter phxfreddy

    (@phxfreddy)

    Figured I had better eliminate the possibility of any other plugIn interaction so —->

    ———————– Total PlugIn Elimination experiment ——————

    wpmathpub = enabled

    all other plugins = disabled

    Still had issue with /page/264 at the Entry: MOSFET Depletion Region Width Xd >>> this does not render and gives the big jumble of errors AND the progress spinner of /page/264

    Plugin Author Ron Fredericks

    (@ronf)

    Nice work searching for a solution. Can I duplicate this problem with a math short code example that you may have in the current version of wonton v 2.1.3?

    Thread Starter phxfreddy

    (@phxfreddy)

    -1- Can I duplicate this problem with a math short code example

    -2- that you may have in the current version of wonton v 2.1.3?

    Item 1: are you asking if I can do an experiment according to your requests? YES

    Item 2: I do not know what “wonton v2.1.3” is. Ah OK I see you did an update to 2.1.3 of the plugin.

    Please forgive if I am missing something obvious here. It has been a few months will take a few minutes for things to come back to me.

    • This reply was modified 5 months, 1 week ago by phxfreddy.
    Thread Starter phxfreddy

    (@phxfreddy)

    -1- I installed the update to the plugin 2.1.3

    -2- enabled wpmathpub

    -3- I dialed in to baseURL/page/263 and started incrementing 264, 265, 266 and it no longer had an issue

    -4- I verified that the math is rendering.

    Looks like you may have fixed the problem. Curious why it had an issue with 263 in particular. Although in the intervening time there have been several entries added so if it was due to an odd combination of characters that combination would have moved

    -5- Still seeing the following error message at the top of my admin page when I log in

    Deprecated: Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /home/politico/amarketplaceofideas.com/wp-includes/functions.php on line 6121

    -6- Since it has been a few months I decided to increment starting at baseURL/page/263. When I got to https://www.amarketplaceofideas.com/page/274 I see the error. Due to a large fraction of my posts being private I doubt you will see it at that location if you dial in.

    I logged out so my private posts no long affect the count. The error can be seen at https://www.amarketplaceofideas.com/page/180

    It appears to be the same entry causing the issue. Is there a special combination of characters that can cause an error condition? I know wordpress itself absolutely hates $dollar signs. Error text cut and pasted below.

    Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php:1055 Stack trace: #0 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1010): expression_math->dessine_expression(9.6) #1 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1237): expression_math->dessine(9.6) #2 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(972): expression_math->dessine_grandoperateur(’12’, ‘_integrale’) #3 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1025): expression_math->dessine(’12’) #4 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1010): expression_math->dessine_expression(’12’) #5 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1678): expression_math->dessine(’12’) #6 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.php(1709): mathimage(‘int{}{}{E circ …’, ’12’, ‘https://www.ama…&#8217;) #7 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/wpmathpub.php(121): mathfilter(‘<m> int{}{}{E c…’, ’12’, ‘https://www.ama…&#8217;) #8 [internal function]: wpmathfilter(Array) #9 /home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/wpmathpub.php(135): preg_replace_callback(‘#\\[pmath(\\s+siz…’, ‘wpmathfilter’, ‘Gauss’s Law\r\n\r\n…’) #10 /home/politico/amarketplaceofideas.com/wp-includes/class-wp-hook.php(324): to_phpmath(‘Gauss’s Law\r\n\r\n…’) #11 /home/politico/amarketplaceofideas.com/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘Gauss’s Law\r\n\r\n…’, Array) #12 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(281): apply_filters(‘the_content’, ‘Gauss’s Law\r\n\r\n…’) #13 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(249): Hestia_Blog_Post_Layout->get_post_content() #14 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(220): Hestia_Blog_Post_Layout->get_theme_excerpt(‘default’) #15 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(66): Hestia_Blog_Post_Layout->render_post_body() #16 /home/politico/amarketplaceofideas.com/wp-content/themes/default/inc/views/blog/class-hestia-blog-post-layout.php(44): Hestia_Blog_Post_Layout->get_article(Array) #17 /home/politico/amarketplaceofideas.com/wp-includes/class-wp-hook.php(324): Hestia_Blog_Post_Layout->render(‘default’) #18 /home/politico/amarketplaceofideas.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #19 /home/politico/amarketplaceofideas.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #20 /home/politico/amarketplaceofideas.com/wp-content/themes/default/template-parts/content.php(12): do_action(‘hestia_blog_pos…’, ‘default’) #21 /home/politico/amarketplaceofideas.com/wp-includes/template.php(812): require(‘/home/politico/…’) #22 /home/politico/amarketplaceofideas.com/wp-includes/template.php(745): load_template(‘/home/politico/…’, false, Array) #23 /home/politico/amarketplaceofideas.com/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #24 /home/politico/amarketplaceofideas.com/wp-content/themes/default/index.php(66): get_template_part(‘template-parts/…’) #25 /home/politico/amarketplaceofideas.com/wp-includes/template-loader.php(106): include(‘/home/politico/…’) #26 /home/politico/amarketplaceofideas.com/wp-blog-header.php(19): require_once(‘/home/politico/…’) #27 /home/politico/amarketplaceofideas.com/index.php(17): require(‘/home/politico/…’) #28 {main} thrown in/home/politico/amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/mathpublisher.phpon line1055

    • This reply was modified 5 months, 1 week ago by phxfreddy.
    • This reply was modified 5 months, 1 week ago by phxfreddy.
    Plugin Author Ron Fredericks

    (@ronf)

    I appreciate your interest in wpmathpub. I am still trying to get on board to learn about your issue details. For me, my admin panel shows no issues on my three separate websites (different themes, but all using Guenburg blocks.

    I reviewed the wordpress docs on has_cap:

    I tried referencing your link:

    Is there a particular pmath string that causes your error?

    • Example: vec{Del}f(x,y)
    • But surounded by the the pmath short code tag

    Are you using an html editor or are you using the Guetenburg blocks to enter your wpmathpub code?

    Do you use the wpmathpub Tools feature to display your environment along with a simple math equation? I created this feature to help folks during their install/usage debugging process.

    Thread Starter phxfreddy

    (@phxfreddy)

    -1- does reported error go away when I disable wpmathpub – Yes.

    -2- referencing link: I realized and revised my reply above but probably you read before I realized – my blog has a large fraction of private posts. Thus unless logged in the indexing would not be the same. The link for you without being logged in would be: https://www.amarketplaceofideas.com/page/180

    sorry about that oversight.

    -3- I use CKEditor plugin – which is wysiwyg html.

    -4- I am not sure what it means to “display your environment”. I use the pmath tag straight forwardly. Example: the product of x and y would be: [pmath] x * y [/pmath] and this would be entered directly into the wysiwyg editor just as typed. ( not using source view for example ).

    Since the abberrant behavior is associated with this single post and moves as more entries or added or if I am logged in or not I have to imagine there is something specific about that particular blog entry.

    https://www.amarketplaceofideas.com/mosfet-body-effect-factor-substrate-bias-effects.htm

    • This reply was modified 5 months, 1 week ago by phxfreddy.
    Plugin Author Ron Fredericks

    (@ronf)

    OK – I love your site. I went to the top of the page MOSFET post and see several equations. They are from wpmathpub I assume?

    It will take me a little while to get back up to speed using html editor. Useful for me in supporting this plugin. It may take a little time (a few days) to test.

    In the meantime, can you check out the wpmathpub debug tool (maybe share your results) to help set up my test platform for this issue?

    Link to my support page showing how to use the tool: https://www.biophysicslab.com/wordpress-math-publisher-plugin/#wpmathpub-Plugin-Status-Tool

    Thread Starter phxfreddy

    (@phxfreddy)

    -0- Site: things got too complicated to remember all the detailed issues I’ve come up against.

    -1- yes the equations on the linked page are wpmathpub with the [pmath] tags

    -2- “get up to speed” never happens to me! >80)

    -3- result of your wpmathpub plugin status: 2.1.3 tool

    Operating system:Linux

    PHP version:8.1.31

    PHP GD library:version bundled (2.1.0 compatible) with PNG format supported

    Ownership:script owner=1057907, img file owner=1057907

    Blog’s url:https://www.amarketplaceofideas.com

    WordPress version:6.8.3

    WordPress theme:Hestia

    WordPress plugin name: wpmathpub

    Relative img path:../wp-content/plugins/wpmathpub/phpmathpublisher/img

    Working directory:/home/politico/amarketplaceofideas.com/wp-admin

    Absolute img path:https://www.amarketplaceofideas.com/wp-content/plugins/wpmathpub/phpmathpublisher/img/

    img directory readable:yes

    img directory writable:yes

    img directory executable:yes

    Content filter added:yes

    mathfilter(y=mx^2+b):y=mx^2+b

    Plugin Author Ron Fredericks

    (@ronf)

    Gettiing up to speed :>) Sort of like those that say “Let’s do lunch?”

    So I started by brushing up on HTML short code example without blocks or any html editor plugin -no errors.

    I will try an editor that gets updated regularly – the classic editor plugin next.

    But I will check CKeditor after that.

    In the mean time here is my sample test from today that works fine, using HTML without any editor plugins and no guetenburg blocks.

    https://www.embeddedcomponents.com/2025/11/wordpress-wpmathpub-plugin-simple-html/

    Thread Starter phxfreddy

    (@phxfreddy)

    I have 4000ish posts in the blog all whipped out with CKEditor. As far as I can tell only one entry has this issue. Just off that could we estimate your chances of tripping an error might be 1:4000 ?

    I can not say I fully understood exactly what you were saying with the talk about the short codes so if I’m completely off base…..derp.

    Would it help if I supplied the blog entry source ?

    BTW: I have to laugh at how nice those Gutenberg things look and I barely knew it existed. I think when it originally popped up I disabled as fast as possible to I could get back to work.

    Plugin Author Ron Fredericks

    (@ronf)

    Sure – if you know how to send the blog post source, do it. I will take a look.

Viewing 15 replies - 1 through 15 (of 43 total)

You must be logged in to reply to this topic.