• Resolved TheArtfulDodger

    (@theartfuldodger)


    This was working about 2-3 months ago (I have been writing other courses) when a student registered. When I went to test it yesterday the following php errors occurred. I have added a 10-hour course to the site, but it is not complete yet.
    WP version 4.9.6. Windows 10 64-bit. I had Woocommerce, but I deleted it to see if that would fix the problem, but to no avail.

    Any ideas?

    Warning: Illegal string offset ‘cols’ in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 103

    Warning: Illegal string offset ‘gateways’ in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 107

    Warning: Illegal string offset ‘selected_gateway’ in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 108

    Warning: Illegal string offset ‘order_key’ in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 110

    Warning: Cannot assign an empty string to a string offset in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 110

    Warning: Illegal string offset ‘field_data’ in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 112

    Warning: Illegal string offset ‘coupon’ in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 146

    Warning: Cannot assign an empty string to a string offset in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 146

    Warning: Illegal string offset ‘plan’ in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 153

    Recoverable fatal error: Object of class LLMS_Access_Plan could not be converted to string in /homepages/1/d513761231/htdocs/courses/wp-content/plugins/lifterlms/includes/shortcodes/class.llms.shortcode.checkout.php on line 153

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • @theartfuldodger,

    I believe that you’re encountering PHP 7.1 compatibility issues which were resolved in LifterLMS 3.7.7 (see changelog here)

    The line numbers of the errors reported seem consistent with LifterLMS 3.7.6 or earlier. If this is the case can you please upgrade to the latest version of LifterLMS which will resolve this (and many other) issues!

    best,

    Thread Starter TheArtfulDodger

    (@theartfuldodger)

    When I go to the plugin page on my site, I search for the lasted version (3.18.2)
    but there is no install button.
    How do I go from my version 3.4.5 to the latest version?

    Also, I am nervous about having to rebuild lots my courses, and quizzes etc…, with such a leap in upgrade.

    (I have screenshots which provide the display of the missing button).

    What do I need to do to keep it as seamless as possible?( I know nothing is completely seamless).

    Thanks.

    • This reply was modified 6 years, 9 months ago by TheArtfulDodger. Reason: missing text

    @theartfuldodger,

    When I go to the plugin page on my site, I search for the lasted version (3.18.2)
    but there is no install button.

    You can’t install a plugin that’s already installed. You need to upgrade the existing plugin.

    To update, head to the Plugins list on your site and check for plugins with available updates.

    Are you seeing the ability to update ANY plugins, your theme, the WordPress core?

    If you’re not seeing updates you may have an issue with one of your plugins blocking updates somehow (probably accidentally). You could have an issue with your webhost being unable to communicate with the WordPress plugin repository API that’s preventing you from getting update notifications.

    Also, I am nervous about having to rebuild lots my courses, and quizzes etc…, with such a leap in upgrade.

    You will not have to rebuild courses or quizzes, however, quizzes have received a major overhaul and building courses and quizzes will look very different on the latest version than on the version you’re using.

    You *must* run the database migrations that you’ll be prompted to run after upgrading. Here’s a list of the upgrades and what they do: https://lifterlms.com/docs/lifterlms-database-updates/

    I’d recommend taking a look at our docs on the course builder: https://lifterlms.com/docs/using-course-builder/ and on building quizzes since 3.16: https://lifterlms.com/docs/create-quiz-lifterlms/

    (I have screenshots which provide the display of the missing button).

    I believe you! This is working as expected if you already have LifterLMS installed. Nothing is broken in LifterLMS or WordPress.

    What do I need to do to keep it as seamless as possible?( I know nothing is completely seamless).

    When upgrading anything I always recommend first upgrading in a staging site. If you don’t have one you probably should (I mean this in the least condescending tone possible!). I’ve written a guide that may help: https://lifterlms.com/docs/staging/

    The upgrade should be pretty simple for you but that doesn’t mean that you shouldn’t give it a test first. Set up your staging site and then run your updates in staging. This way if anything goes wrong YOUR MAIN SITE REMAINS INTACT and you submit support tickets calmly. This HELPS ME TOO as it’s much easier for me to work with you when you’re dealing with an issue that ISN’T PREVENTING YOU FROM MAKING MONEY AND ISN’T AFFECTING YOUR REAL STUDENTS!

    Give it a test in staging. If it goes smooth there you can repeat the process in production.

    In the meantime you can also disable WP_DEBUG_DISPLAY on your site so that you won’t see the warnings that initially were raised in this thread.

    Any questions let me know,

    Thread Starter TheArtfulDodger

    (@theartfuldodger)

    Thomas,

    I deactivated my plugins in stages, and it fixed the issue. I do not know which one was the culprit, but i am going to build a staging site so hopefully I can investigate the cause.

    I will do the upgrade on the staging site as per your suggestion.

    Btw, Is there a place/site you recommend to learn PHP from the ground up. I need to know more about how it works and how to use it.

    Once again,

    Thanks.

    @theartfuldodger,

    I know I own and maintain a learning platform but all the things I know about programming I’ve learned by doing. I’m completely self-taught and I’ve never once taken a course of any kind on programming or development. (Actually Ifrom took a CSS course in college for easy credits).

    I wish I had some good recommendations or resources but from personal experience I don’t.

    I taught myself by aggressively searching issues on Google and StackOverflow. Get familiar with the docs at php.net. I’m sure there’s good PHP courses out there but I don’t know about them.

    Sorry

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘php errors when clicking ‘Enrol Now’’ is closed to new replies.