PHP 8.0 Error

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 3 months ago - 3 years 3 months ago #147752 by Stephen
PHP 8.0 Error was created by Stephen
Hi
Just tested with PHP 8.0 and had this error

0
Non-static method OSappscheduleCategory::display() cannot be called staticallyCall 

 


Any idea how to fix this?

Regards
Stephen

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
  • Last edit: 3 years 3 months ago by Stephen.

    Please Log in or Create an account to join the conversation.

    More
    3 years 3 months ago #147753 by Mr. Dam
    Replied by Mr. Dam on topic PHP 8.0 Error
    Hi Stephen,
    To solve this issue, please following below steps
    1. Open file: root -> components -> com_osservicesbooking -> classes -> category.php
    2. Find:
    Code:
    function listCategories()
    and change to
    Code:
    static function listCategories()

    Thanks
    Dam

    Please Log in or Create an account to join the conversation.

    More
    3 years 3 months ago #147754 by Mr. Dam
    Replied by Mr. Dam on topic PHP 8.0 Error
    And do the same with file: category.html.php
    Code:
    function listCategories($categories,$params,$list_type,$introtext)
    and change to
    Code:
    static function listCategories($categories,$params,$list_type,$introtext)

    Thanks
    Dam

    Please Log in or Create an account to join the conversation.

    • Stephen
    • Topic Author
    • Offline
    • Platinum Member
    • Platinum Member
    More
    3 years 3 months ago #147761 by Stephen
    Replied by Stephen on topic PHP 8.0 Error
    Hi
    Just changed it in the files you mentioned, but after the change I still have the same error showing up.

    Regards
    Stephen

    If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.

    Please Log in or Create an account to join the conversation.

    More
    3 years 3 months ago #147765 by Mr. Dam
    Replied by Mr. Dam on topic PHP 8.0 Error
    Hi Stephen,
    Please submit ticket on category OS Services Booking and i will check the issue for you
    Thanks
    Dam

    Please Log in or Create an account to join the conversation.

    Moderators: Mr. Dam