Our brands

Answer for Ves Widget not found (404)

Hello There,
 
Thanks you for your question. The problem maybe you changed the admin route (default is: http://yoursite.com/index.php/admin) Then the page builder get the 404 error link.
 
We fixed the issue. Please try to open the file “app/code/community/Ves/BlockBuilder/Helper/Data.php”, then find there functions:
 
public function getWidgetFormUrl($target_id = “”)
public function getListWidgetsUrl($target_id = “”)
 
Replace code of 2 functions to:
 
public function getWidgetFormUrl($target_id = “”) {
$params = array();
if($target_id) {
$params[‘widget_target_id’] = $target_id;
}
$admin_route = Mage::getConfig()->getNode(‘admin/routers/adminhtml/args/frontName’);
$admin_route = $admin_route?$admin_route:”admin”;
$url = Mage::getSingleton(‘adminhtml/url’)->getUrl(‘*/widget/loadOptions’, $params);
$url = str_replace(“/blockbuilder/”,”/{$admin_route}/”, $url);
return $url;
}
public function getListWidgetsUrl($target_id = “”) {
//return Mage::helper(“adminhtml”)->getUrl(“*/*/listwidgets”);
$params = array();
if($target_id) {
$params[‘widget_target_id’] = $target_id;
}
$admin_route = Mage::getConfig()->getNode(‘admin/routers/adminhtml/args/frontName’);
$admin_route = $admin_route?$admin_route:”admin”;

$url = Mage::getSingleton(‘adminhtml/url’)->getUrl(‘*/widget/index’, $params);
$url = str_replace(“/blockbuilder/”,”/{$admin_route}/”, $url);
return $url;
}
 
Also, we will update the module for our themes.

Share this Post!

Panda Thuan
Panda Thuan
Creativity is falling in love with the world
Do NOT follow this link or you will be banned from the site!