Jump to content

Product details not shown in back office in 1.5.6


Recommended Posts

Hello,

I upgraded my site from 1.3.7 all the way to 1.5.6.

I did it step by step (1.3.7--> 1.4.1 --> 1.4.2.5 --> 1.4.9 --> 1.5.2 --> 1.5.5). First in a TEST environment (folder and DB), online but it was too slow, then locally.

When everything worked locally (and it took quite some time), I uploaded everything (files and DB) online in TEST.

Everything was working fine.

I then copied the DB to PROD and did the same for the files.

I modified the settings for the URI and the DB connectivity in the DB itself.

I was so happy that everything worked finally.

 

Unfortunately, the product details give me a blank page in the Back Office. 

(see print screen)

Nothing wrong in Front Office.

 

I searched the forum but did not find any help. So here I am.

If you have any idea where I can look to solve this, it would help me a lot.

I don't want to start the whole thing again.

 

Many thanks.

post-714543-0-41071800-1381856701_thumb.png

Link to comment
Share on other sites

Hello Nemo,

 

Thanks for your reply. I already tried to turn on errors but I don't see any error. Just a blank page.

I turned it off again to avoid the "deprecated Display() ..." in the Front Office.

What file does display the Product Details in BO? Is it part of the theme?

Cheers

Phil

Link to comment
Share on other sites

OK. What am I looking for in the page source?

I know a little bit but when it becomes too technical, it goes "above my head" :)

Here is the info in the HEAD tag:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8 ie7" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html lang="fr" class="no-js ie9" lang="en"> <![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<meta name="robots" content="NOFOLLOW, NOINDEX" />
	<title>Produits - PrestaShop™</title>
	<script type="text/javascript">
		var help_class_name = 'AdminProducts';
		var iso_user = 'fr';
		var country_iso_code = 'BE';
		var _PS_VERSION_ = '1.5.6.0';

		var helpboxes = 1;
		var roundMode = 2;
						var youEditFieldFor = '';
					
		var autorefresh_notifications = '';
		var new_order_msg = 'Une nouvelle commande a été passée sur votre boutique.';
		var order_number_msg = 'Numéro de la commande :';
		var total_msg = 'Total :';
		var from_msg = 'De :';
		var see_order_msg = 'Voir la commande';
		var new_customer_msg = 'Un nouveau client s'est inscrit sur votre boutique.';
		var customer_name_msg = 'Nom du client :';
		var see_customer_msg = 'Voir le client';
		var new_msg = 'Un nouveau message a été publié sur votre boutique.';
		var excerpt_msg = 'Extrait :';
		var see_msg = 'Lire le message';
		var token_admin_orders = '633128a02398dd806f4ed991ebe882c1';
		var token_admin_customers = '63a6ab9cf0ec72a6995ea457b6c78215';
		var token_admin_customer_threads = '095d226560ed585687ed84226c635192';
		var currentIndex = 'index.php?controller=AdminProducts';
		var choose_language_translate = "Choisir la langue";
	</script>

			<link href="/www/admin123/../css/admin.css" rel="stylesheet" type="text/css" media="all" />
			<link href="/www/admin123/../admin123/themes/default/css/admin.css" rel="stylesheet" type="text/css" media="all" />
			<link href="/www/admin123/../js/jquery/plugins/treeview-categories/jquery.treeview-categories.css" rel="stylesheet" type="text/css" media="all" />
			<link href="/www/admin123/../js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.css" rel="stylesheet" type="text/css" media="all" />
				<script type="text/javascript" src="/www/admin123/../js/admin.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/toggle.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/tools.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/ajax.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/toolbar.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/notifications.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/helpAccess.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/productTabsManager.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/admin-products.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/attributesBack.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/price.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/tiny_mce/tiny_mce.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/tinymce.inc.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/fileuploader.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/admin-dnd.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/jquery/plugins/treeview-categories/jquery.treeview-categories.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/jquery/plugins/treeview-categories/jquery.treeview-categories.async.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/jquery/plugins/treeview-categories/jquery.treeview-categories.edit.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/admin-categories-tree.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/jquery/ui/jquery.ui.progressbar.min.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.js"></script>
			<script type="text/javascript" src="/www/admin123/../js/form.js"></script>
		<link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico" />
	<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico" />
	
	<!--[if IE]>
	<link type="text/css" rel="stylesheet" href="http://www.culturejeux.be/css/admin-ie.css" />
	<![endif]-->
	<style type="text/css">
		div#header_infos, div#header_infos a#header_shopname, div#header_infos a#header_logout, div#header_infos a#header_foaccess {color:#383838}
	</style>
</head>

I'm not sure what to look for in here.

 

Would it be possible to "upgrade" from 1.5.6 to 1.5.6? So to "clean" the installation?

I tried to install a bright new store on 1.5.5 and all work fine. As soon as I import the tables, I get the same result.

May be a setting I have to change.

In any case, thanks for your feedback.

Philippe

Link to comment
Share on other sites

Any help? Or thought?

Could I install a clean 1.5.6 and either

- copy some files (like admin)? In that case, which folder should I consider?

or

- import main tables (without any config to make sure I keep the clean setup)? In that case, which tables (customer, orders, products, etc.)?

 

Please, any hint would help.

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

Hello Vekia,

OK. I investigated a bit more.Ì did a bright new installation in a new folder, then pointed that install to my DB and all worked fine.

I then decided to rename de folder to match the normal one and it stopped working again.

Some time ago, I created a sub-domain to point to the www folder (where is PS located)

It seems that this sub-domain is gone, hence my problems. 

I changed now the physical URL to point to www/ (instead of / with sub-domain defined before).

I'll now have to check with my hosting provider why this happened.

I still have to do some fine tuning (like copy images, etc.) but the site BO is now working correctly.

Cheers,

Philippe

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...
  • 1 month later...

Hey, I'm new here and as said above, there's no javascript included in the adminproducts pabe in the BackOffice, does anyone have any idea

 

Hello Vekia,

OK. I investigated a bit more.Ì did a bright new installation in a new folder, then pointed that install to my DB and all worked fine.

I then decided to rename de folder to match the normal one and it stopped working again.

Some time ago, I created a sub-domain to point to the www folder (where is PS located)

It seems that this sub-domain is gone, hence my problems. 

I changed now the physical URL to point to www/ (instead of / with sub-domain defined before).

I'll now have to check with my hosting provider why this happened.

I still have to do some fine tuning (like copy images, etc.) but the site BO is now working correctly.

Cheers,

Philippe

philrey212, where did you change that sub-domain setting, please answer 'cause I have the exact problem you had!

Link to comment
Share on other sites

Hey, I'm new here and as said above, there's no javascript included in the adminproducts pabe in the BackOffice, does anyone have any idea

 

philrey212, where did you change that sub-domain setting, please answer 'cause I have the exact problem you had!

Nevermind, i just solved my problem the way you solved yours through SEO & URLs page

  1. I Changed by base uri from /nameofmyfolder/ to domain/nameofmyfolder/ under Set shop URL tab
  2. refreshed products page

It worked like a charm!

Link to comment
Share on other sites

Nevermind, i just solved my problem the way you solved yours through SEO & URLs page

  1. I Changed by base uri from /nameofmyfolder/ to domain/nameofmyfolder/ under Set shop URL tab
  2. refreshed products page

It worked like a charm!

scratch that... when i return to my front office, the url is displayed as follows:

http://domain/domain/nameoffolder/en/

How The Heck can I solve this without ruining the front office??

please help!!!

Link to comment
Share on other sites

open controllers/admin/AdminProductsController.php in setMedia() function add

$this->addJquery();

hope this will work, if not - i suggest to check your prestashop filesystem for file: /js/jquery/jquery-1.7.2.min.jshen I

1. this solution is too amatuer

2. then I took a look in Controller, It already Calls this method, & when I tried debugging, I found out that in Media::getJSPath, it returns false! is there reason why this happens, like some setting?

Here's the method syntax:

public static function getJSPath($js_uri)
	{
		if (is_array($js_uri) || $js_uri === null || empty($js_uri))
			return false;
		$url_data = parse_url($js_uri);
		if (!array_key_exists('host', $url_data))
			$file_uri = _PS_ROOT_DIR_.Tools::str_replace_once(__PS_BASE_URI__, DIRECTORY_SEPARATOR, $url_data['path']);		// remove PS_BASE_URI on _PS_ROOT_DIR_ for the following
		else
			$file_uri = $js_uri;
		// check if js files exists

		if (!preg_match('/^http(s?):\/\//i', $file_uri) && !@filemtime($file_uri))
			return false;

		if (Context::getContext()->controller->controller_type == 'admin')
		{
			$js_uri = preg_replace('/^'.preg_quote(__PS_BASE_URI__, '/').'/', '/', $js_uri);
			$js_uri = dirname(preg_replace('/\?.+$/', '', $_SERVER['REQUEST_URI']).'a').'/..'.$js_uri;
		}
		
		return $js_uri;
	}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...