• Resolved Big Frank

    (@big-frank)


    Hi,

    I hope you can help. I have added no new plugins to my site in a year, at least. I do not have a staging site and perhaps I should have thougt of this earlier, but it’s too late for that now! ??

    For the last week or so, I have just started receiving daily emails from WordPress saying the following :

    Error Details
    =============
    An error of type E_PARSE was caused in line 133 of the file /home/mysite/public_html/wp-content/plugins/uncanny-learndash-toolkit/src/install-automator.php. Error message: syntax error, unexpected ')'

    I have disabled all of the modules for the time being but I don’t want to disable or uninstall the plugin because it’s a fairly essential part of my site.

    This is the section of code in install-automator.php the email refers to:

    <?php
    echo wp_kses(
    	sprintf(
    		__(
    			'When a user completes a course and fills out an evaluation form, add a row with the form entries to a %1$sGoogle Sheet%2$s and add the user to alumni %1$sBuddyBoss%2$s and %1$sLearnDash%2$s groups.',
    			'uncanny-learndash-toolkit'
    		),
    		'<strong>',
    		'</strong>',
    	),
    	array(
    		'strong' => array(),
    	)
    );
    ?>

    Line 133 is the parenthesis on its own above “array(“.

    There is clearly no syntax error in that php block so it’s coming from a variable output. Are you aware of anything that I could look at to correct this error? Have you had this error reported to you before? If so, what was the solution?

    I can’t realistically deactivate any plugins to see if any make good on this error. I have at least 20, all of which are essential to my site and the experience of my students. I only receive the WordPress error email once a day only. As you can understand, it’s a great help to identify an error, but not to debug it!

    Many thanks in advance for any help you can provide that keeps me up and running with your plugin.

    • This topic was modified 1 year, 7 months ago by Big Frank.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi @big-frank , we saw this error from a few sites when LearnDash first released 4.5, as they changed how something was loaded, but they released a fix right after that. Are you able to confirm the specific versions you’re running of the Toolkit plugin and LearnDash itself? You shouldn’t see this with the latest versions.

    Thanks

    Thread Starter Big Frank

    (@big-frank)

    Hi and thank you for replying,

    The versions are:

    Uncanny Toolkit : 3.6.4.3
    LearnDash LMS : 4.5.2.1

    Thanks!

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi @big-frank ,

    Okay, those are the latest versions, but I wondered if somehow any files could be cached. Maybe you could try briefly deactivating and reactivating both plugins?

    We would really like to see the system report from LearnDash LMS > Settings > Support, but it would include information about your site. If at all possible, perhaps you could send it to support @ uncannyowl.com and reference this ticket so we could review the additional details.

    Thread Starter Big Frank

    (@big-frank)

    Thank you for your prompt reply.

    I may have found the error (in contrast to my assertion in my original post LOL). Remove the trailing comma after :

    '</strong>',

    The same syntax error appears 4 times in this file install-automator.php. Once corrected, that’s it, no more syntax errors.

    I’ll see if the error messages continue and if they do I’ll let you know. Many thanks.

    • This reply was modified 1 year, 6 months ago by Big Frank.
    Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi @big-frank , any chance we could confirm your PHP version? It does seem like that’s related, and I think we’ll flag supported versions in the next release as 7.4 to 8.1.

    Thanks!

    Thread Starter Big Frank

    (@big-frank)

    Thanks for your reply,

    Server running PHP version: 7.4.33.
    MySQL version: 10.3.38-MariaDB-log-cll-lve

    Best wishes

    Frank

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Thanks @big-frank , sorry for all of the back and forth.

    Our dev team has match a patch available at https://we.tl/t-hhHCHaqek5. We will include the change in the next release, or if you want to use our changes (though it sounds like yours are working fine), you can replace your existing file now at this path:

    wp-content/plugins/uncanny-learndash-toolkit/src/install-automator.php

    Thread Starter Big Frank

    (@big-frank)

    So as to help debug this properly, I’ve placed your patch version of the file, reactivated the plugin and we’ll see in the morning if the error message is generated.

    Many thanks for your help with all of this!

    Frank

    Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi, since it has been over a month now, we’ll hope the fix worked and close this ticket. Let us know though if additional assistance is needed.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘An error of type E_PARSE was caused in line 133 of install-automator.php’ is closed to new replies.