OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Sanity test. Error version check! (In Jommla 3.5.0 (0 viewing) 
VehicleManager component support
Go to bottom Favoured: 0
TOPIC: Sanity test. Error version check! (In Jommla 3.5.0
#18874
xtac (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Sanity test. Error version check! (In Jommla 3.5.0 8 Months, 2 Weeks ago Karma: 0  
The script dont work at joomla 3.5.0. Can anyone help?

Sanity test. Error version check!
 
Logged Logged  
  The administrator has disabled public write access.
#18875
anlicor (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Sanity test. Error version check! (In Jommla 3.5.0 8 Months, 2 Weeks ago Karma: 0  
in the com_vehiclemanager directory

I have been changing
} else if (version_compare(JVERSION, "1.6.0", "ge" && version_compare(JVERSION, "3.5.0", "lt")
to
} else if (version_compare(JVERSION, "1.6.0", "ge" && version_compare(JVERSION, "4.5.0", "lt")

I see it in functions.php and compat.joomla.1.5.php so far.
 
Logged Logged  
  The administrator has disabled public write access.
#18879
Nobs (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:Sanity test. Error version check! (In Jommla 3.5.0 8 Months, 2 Weeks ago Karma: 0  
Same issue here.

Changing functions.php and compat.joomla.1.5.php doesn´t fix it for me.

Please provide a fix for this issue!

Thanks!

Nobs
 
Logged Logged  
  The administrator has disabled public write access.
#18884
bshea (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:Sanity test. Error version check! (In Jommla 3.5.0 8 Months, 2 Weeks ago Karma: 0  
Doesn't fix it for me either.
 
Logged Logged  
  The administrator has disabled public write access.
#18885
anlicor (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Sanity test. Error version check! (In Jommla 3.5.0 8 Months, 2 Weeks ago Karma: 0  
I opened all the files in the com_vehiclemanager folder.

I looked for: "Sanity" in all opened files.

Then replaced
} else if (version_compare(JVERSION, "1.6.0", "ge" && version_compare(JVERSION, "3.5.0", "lt"
with
} else if (version_compare(JVERSION, "1.6.0", "ge" && version_compare(JVERSION, "4.5.0", "lt"

All this line does is trick this version check to look for Joomla version 4.5 instead of 3.5.

If you still get the error JVERSION, "3.5.0" must still be in more atleast one place.

Remember this is only a temporary fix until they release a new version of vehicle manager.

Here is a site running Joomla 3.5 that is used this hack on.
www.velocitybarbados.com/home
 
Logged Logged  
  The administrator has disabled public write access.
#18886
bshea (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:Sanity test. Error version check! (In Jommla 3.5.0 8 Months, 2 Weeks ago Karma: 0  
Here is the code from my functions.php file. If I make the changes you say I get a blank page.

Code:

    static function getWhereUsergroupsCondition($table_alias = "c"){
      if (version_compare(JVERSION, "1.6.0", "lt")){
        global $my;
        if (!isset($my))
        { // echo "User is logged out"; 
          if ($my = JFactory::getUser())
            $gid = $my->gid; else
            $gid = 0;
        } else
          $gid = $my->gid;
        $usergroups_sh = array($gid, -2);
        $s = '';
        for ($i = 0; $i < count($usergroups_sh); $i++) {
          $g = $usergroups_sh[$i];
          $s .= " $table_alias.params LIKE '%,{$g}' or $table_alias.params = '{$g}' or $table_alias.params LIKE '{$g},%' or $table_alias.params LIKE '%,{$g},%' ";
          if (($i + 1) < count($usergroups_sh))
            $s .= ' or ';
        }
        return $s;
      } else if (version_compare(JVERSION, "1.5.0", "ge") && version_compare(JVERSION, "3.5.0", "lt")){
        $my = JFactory::getUser();
        if (isset($my->id) AND $my->id != 0)
          $usergroups_sh = vmLittleThings::getGroupsByUser($my->id, '');
        else
          $usergroups_sh = array();
        $usergroups_sh[] = -2;
        $s = '';
        for ($i = 0; $i < count($usergroups_sh); $i++) {
          $g = $usergroups_sh[$i];
          $s .= " $table_alias.params LIKE '%,{$g}' or $table_alias.params = '{$g}' or $table_alias.params LIKE '{$g},%' or $table_alias.params LIKE '%,{$g},%' ";
          if (($i + 1) < count($usergroups_sh))
            $s .= ' or ';
        }
        return $s;
      } else{
        echo "Sanity test. Error version check!";
        exit;
      }

 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?