Thứ Bảy, 9 tháng 9, 2023

JooCart 4.x not allow upload error exist extension - SOLVED


Detail: upload extension not compatible JooCart 4.x version,
need upload again new exntension -> error exist file
Error: exist file upload before
Solution: remove by manual
Folder: components\com_opencart\system\storage\marketplace
Remove files, then upload again



 

Thứ Ba, 5 tháng 9, 2023

Joomla4 upgrade com_search error JEventDispatcher - SOLVED

Detail: J3 upgrade to J4 com_search result -> error JEventDispatcher
Reason: /components/com_search/models/search.php JEventDispatcher invalid
Solution: download new package and re-install
https://github.com/joomla-extensions/search/releases/download/4.0.1-dev/pkg_search_4.0.1-dev.zip


 

Joomla4 import Mosets Tree manual - SOLVED


Extension name: Mosets Tree - this require paid component
Joomla 4: install
J3: #_mt_ phpmyadmin export 'data insert only with column name'. This will help warning when db structure different
j4: #_mt_ empty table
Run querylist

 


Thứ Hai, 4 tháng 9, 2023

Joomla4 com_breezingforms JQUERY error - SOLVED

Detail: Joomla4 com_breezingforms JQUERY error
Reason: JQUERY or is library, go to file and replace line

Solution: 'JQuery' replace by 'jQuery'
administrator\components\com_breezingforms\libraries\crosstec\classes\BFQuickMode.php



 

jQuery window load e.indexOf is not a function - SOLVED

Detail:
$(window).load(function() {
alert('Load');
});
Error e.indexOf is not a function
Solution: change code below
$(window).on('load', function () {
    alert('On Load');
});



 

joomla4 .owlCarousel is not function - SOLVED

Detail: Joomla3 owlCarousel function good work, upgrade to joomla4 .owlCarousel is not function
Reason: miss file bootstrap.min.js
Solution: j3 get \media\jui\js\bootstrap.min.js, template j4 load this script




 

Chủ Nhật, 3 tháng 9, 2023

Joomla4 error.php check id article redirect


Detail: link url https://domain.php/index.php/1072
Solution: split '/' get last item, is number -> redirect to article

/*CustomRedirect*/
$errUrl= $_SERVER['REQUEST_URI'];    
/*Get Last Number*/
$splitUrls = explode("/", $errUrl);
if(count($splitUrls)>1){
    $lastItem = $splitUrls[count($splitUrls)-1];
    if(is_numeric($lastItem)){
        /*LastIsNumber redirect to article ID*/
        $redirectLink = JUri::base().'?view=article&id='.$lastItem;
        /*echo $redirectLink;*/
        header('Location:'.$redirectLink);
        exit;
    }
}
/*ENDCustom*/