Jump to content

how fix the admin backoffice


Recommended Posts

Why do you have your base directory set to "/themes/"? From the URL in your screenshot, it appears you've installed Prestashop is the root directory of your site, not in the "/themes/" subdirectory, so it should be "/".

Link to comment
Share on other sites

I'm not sure what else would cause the problem. From the screenshot, it appears that the Back Office is working, it is just the CSS that isn't working. I can't help any more without actually looking at your website. You need to figure out why the CSS isn't being loaded.

Link to comment
Share on other sites

  • 4 years later...

i have the same issue, whenever i go to widget and edit, then save i get this page without menubar

what i've done is: i have 1.5.6.1 and i did another installation of 1.6... of course things got messy

my developer, solved 90% of the problem and he travel...i'm left with this issue

 

i don't know how to attach the screenshot...

Link to comment
Share on other sites

Almost yes, the problem with widget is 2 things

1- when I save and navigate out I get scrambled page

2- I can't upload images on widget, like if I want to add a banner

 

Minor issue I'm the menu of back office, search bar is missed placed

Link to comment
Share on other sites

Almost yes, the problem with widget is 2 things

1- when I save and navigate out I get scrambled page

2- I can't upload images on widget, like if I want to add a banner

 

Minor issue I'm the menu of back office, search bar is missed placed

i think my problem is here:

/public_html/modules/leomanagewidgets/popup.php

 

but i'm not sure, and if yes, no idea how to fix

 

the images problem i mean

Edited by Linkarta (see edit history)
Link to comment
Share on other sites

any advice?

 

<?php
 
define('_PS_ADMIN_DIR_', getcwd());
 
include( _PS_ADMIN_DIR_ .'/../../config/config.inc.php');
 
include( _PS_ADMIN_DIR_ .'/classes/LeoManageWidget.php');
 
include( _PS_ADMIN_DIR_ .'/leomanagewidgets.php');
 
global $adminfolder;
 
$module = new leomanagewidgets();
 
$adminfolder = $module->getFolderAdmin();
 
?>
 
<html>
 
<head>
 
<title>Pop up</title>
 
<link href="<?php echo __PS_BASE_URI__;?>css/admin.css"  type="text/css" rel="stylesheet"/>
 
<link href="<?php echo __PS_BASE_URI__.$adminfolder;?>/themes/default/css/admin.css"  type="text/css" rel="stylesheet"/>
 
<link href="<?php echo _MODULE_DIR_;?>leomanagewidgets/assets/admin/style.css"  type="text/css" rel="stylesheet"/>
 
<style type="text/css">
 
body{height:100%;background-color: #FFFFFF;}
 
#container{height:100%}
 
#content{height:90%;border: none;padding: 0px;}
 
</style>
 
<script src="<?php echo _MODULE_DIR_;?>leomanagewidgets/assets/admin/jquery-1.7.2.min.js" type="text/javascript"></script>
 
<script src="<?php echo _MODULE_DIR_;?>leomanagewidgets/assets/admin/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
 
<script src="<?php echo _MODULE_DIR_;?>leomanagewidgets/assets/admin/admin.js" type="text/javascript"></script>
 
<script type="text/javascript" src="<?php echo __PS_BASE_URI__;?>js/tiny_mce/tiny_mce.js"></script>
 
<script type="text/javascript" src="<?php echo __PS_BASE_URI__;?>js/tinymce.inc.js"></script>
 
<script type="text/javascript">
 
var helpboxes = false;
 
var id_language = <?php echo Tools::getValue('id_lang');?>;
 
function changeLofLanguage(field, fieldsString, id_language_new, iso_code)
 
{
 
$('div[id^='+field+'_]').hide();
 
var fields = fieldsString.split('造');
 
for (var i = 0; i < fields.length; ++i)
 
{
 
$('div[id^='+fields+'_]').hide();
 
$('#'+fields+'_'+id_language_new).show();
 
$('#'+'language_current_'+fields).attr('src', '<?php echo __PS_BASE_URI__;?>img/l/' + id_language_new + '.jpg');
 
}
 
$('#languages_' + field).hide();
 
id_language = id_language_new;
 
}
 
</script>
 
<script src="<?php echo __PS_BASE_URI__;?>js/admin.js" type="text/javascript"></script>
 
</head>
 
<body>
 
<div id="container">
 
<div id="content">
 
<?php 
 
$id_shop = Tools::getValue('id_shop');
 
$id_lang = Tools::getValue('id_lang');
 
$id = Tools::getValue('id_leomanagewidgets');
 
 
 
if(Tools::isSubmit('submitSave')){
 
$error = $module->_postValidation();
 
if(!isset($error['msg'])){
 
$return = $module->_postProcess();
 
$obj = $return['obj'];
 
}else{
 
$obj = new LeoManageWidget($id, 0, $id_shop);
 
}
 
}else{
 
$obj = new LeoManageWidget($id, 0, $id_shop);
 
}
 
$task = Tools::getValue('task', $obj->task);
 
$html = '';
 
 
 
if(file_exists(dirname(__FILE__).'/form_'.$task.'.php')){
 
require_once ( dirname(__FILE__).'/form_'.$task.'.php' );
 
}else{
 
?>
 
<script type="text/javascript">
 
window.parent.location.href = '<?php echo __PS_BASE_URI__.$adminfolder.'/index.php?tab=AdminModules&configure=' . $module->name . '&token=' . Tools::getValue('token');?>';
 
</script>
 
<?php 
 
}
 
?>
 
<div class="container_html">
 
<br/>
 
<br/>
 
<br/>
 
<?php echo (isset($error['msg']) ? $error['msg'] : ''); ?>
 
<?php if(isset($return) && $return){ ?>
 
 
 
<?php echo $return['msg']; ?>
 
<?php if($return['status'] == 'success'){ ?>
 
<script type="text/javascript">
 
window.parent.location.href = '<?php echo __PS_BASE_URI__.$adminfolder.'/index.php?tab=AdminModules&configure=' . $module->name . '&token=' . Tools::getValue('token');?>';
 
</script>
 
<?php } ?>
 
 
 
<?php } ?>
 
 
 
<?php echo $html; ?>
 
</div>
 
</div>
 
</body>
 
</html>
Link to comment
Share on other sites

×
×
  • Create New...