Okay
  Public Ticket #2721720
unite slider update
Closed

Comments

  • mik started the conversation

    Dear friends


    Is there any possibility to update this magnificent slider to a new version?

  •  527
    Igor replied

    Hi,

    can you tell me which version of the slider do you have right now on your site?

    Regards,
    Igor

  • mik replied

    Hi


    I use version 5.0.16, and I have to apply some fixes in order to be able to use it without problems, in the newer PHP versions (7.3, 7.4 etc).

    Also, the Joomla 4 is almost ready, so I wonder if there will be a newer version of the slider.


    By the way, we are a group of friends (developers) here in Greece and we are great fans of the unite revolution slider!


    Keep up the good work.

  •  527
    Igor replied

    Hi,

    can you please provide those fixes that you must apply so I can alert our developers and suggest a changes?

    Regards,
    Igor

  • mik replied

    OK. I send you the two fixes for two different problems. 


    1. The first is for the error message on the backend: "An Array was declared as a String"

    Fix:

    /administrator/components/com_uniterevolution2/inc_php/framework/base-admin.class.php

    Change line 45 

    From:
    private static $arrMetaBoxes = ””; //option boxes that will be added to post

    TO:
    private static $arrMetaBoxes = array(); //option boxes that will be added to post


    2. The second error is malfunctioning in the newer php versions (7.1,7.2,7.4 etc)

    Fix:

    /administrator/components/com_uniterevolution2/inc_php/framework/db.class.php

    Change the checkForErrors function (very likely on line 31) to the following:

    private function checkForErrors($prefix = ""){
      global $wpdb;

      if($this->wpdb->last_error){
        $query = $this->wpdb->last_query;
        $message = $this->wpdb->last_error;

        if($prefix) $message = $prefix.' - <b>'.$message.'</b>';
        if($query) $message .= '<br>---<br> Query: ' . esc_attr($query);
        
        $this->throwError($message);
      }
    }



  •  527
    Igor replied

    Thank you!

    I will forward this to our developers so they can take a look and apply the fixes for the next update

    Regards,
    Igor

  •   Max replied privately
  • mik replied

    Hi, sorry I can't give you access to my server and anyway I have applied these fixes already.


    Thnx anyway