Zen Cart Logo
Forums / General Questions / Product name and description does not show at all

Product name and description does not show at all

Views: 2,108

Results 1 to 15 of 15
25 Apr 2014, 1:14 PM
#1
tsehov avatar

tsehov

New Zenner

Join Date:
May 2012
Posts:
15
Plugin Contributions:
0

Product name and description does not show at all

I have made a shop using Zen-Cart version 1.3.9h (http://www.inarinhopea.fi/korushop/) and it has worked properly a long time. Today the owner of the shop informed me that when she tries to add a new products in the zencart administration pages the product's name and description just disappears when she updates the product information. Only the image and the price of the product are still visible.

I think this must be caused by some PHP update, which the service provider has made some time ago.

Now there seems to be PHP version 5.4.26 and MySQL version 5.5.34-cll-lve.

I wonder if anyone could help me.

Thanks in advance.

25 Apr 2014, 3:40 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Product name and description does not show at all

tsehov:

I have made a shop using Zen-Cart version 1.3.9h (http://www.inarinhopea.fi/korushop/) and it has worked properly a long time. Today the owner of the shop informed me that when she tries to add a new products in the zencart administration pages the product's name and description just disappears when she updates the product information. Only the image and the price of the product are still visible.

I think this must be caused by some PHP update, which the service provider has made some time ago.

Now there seems to be PHP version 5.4.26 and MySQL version 5.5.34-cll-lve.

I wonder if anyone could help me.

Thanks in advance.

Any error messages in the cache folder (looking for logs)?

Ideally would update the cart to zc 1.5.1 which should alleviate this problem.

25 Apr 2014, 3:58 PM
#3
tsehov avatar

tsehov

New Zenner

Join Date:
May 2012
Posts:
15
Plugin Contributions:
0

Re: Product name and description does not show at all

mc12345678:

Any error messages in the cache folder (looking for logs)?

Ideally would update the cart to zc 1.5.1 which should alleviate this problem.

Thank you for quick reply. Below are the latest error logs:


[25-Apr-2014 15:18:07 Europe/Helsinki] PHP Warning: Creating default object from empty value in /home/inarinzj/public_html/korushop/hallinta/products_price_manager.php on line 464
[25-Apr-2014 15:18:07 Europe/Helsinki] PHP Warning: Creating default object from empty value in /home/inarinzj/public_html/korushop/hallinta/products_price_manager.php on line 470

[25-Apr-2014 15:42:37 Europe/Helsinki] PHP Parse error: syntax error, unexpected ',' in /home/inarinzj/public_html/korushop/hallinta/includes/modules/product/collect_info.php on line 299

[25-Apr-2014 16:06:50 Europe/Helsinki] PHP Warning: Creating default object from empty value in /home/inarinzj/public_html/korushop/hallinta/categories.php on line 1011

Of course I would update ZC, but the whole process seems to be pretty complicated and furthermore very time taking.

25 Apr 2014, 4:37 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Product name and description does not show at all

tsehov:

Thank you for quick reply. Below are the latest error logs:


[25-Apr-2014 15:18:07 Europe/Helsinki] PHP Warning: Creating default object from empty value in /home/inarinzj/public_html/korushop/hallinta/products_price_manager.php on line 464
[25-Apr-2014 15:18:07 Europe/Helsinki] PHP Warning: Creating default object from empty value in /home/inarinzj/public_html/korushop/hallinta/products_price_manager.php on line 470

[25-Apr-2014 15:42:37 Europe/Helsinki] PHP Parse error: syntax error, unexpected ',' in /home/inarinzj/public_html/korushop/hallinta/includes/modules/product/collect_info.php on line 299

[25-Apr-2014 16:06:50 Europe/Helsinki] PHP Warning: Creating default object from empty value in /home/inarinzj/public_html/korushop/hallinta/categories.php on line 1011

Of course I would update ZC, but the whole process seems to be pretty complicated and furthermore very time taking.

It's not really that complicated, the instructions are detailed the way they are to give very specific direction, but generally speaking could at least have a functional cart up in a few hours, it's some of the specialization (potentially template related) that can take some extra time. Having to reinstall all of the modules that were previously being used (still functional with the newest version) test and validate that instll was successful.

So, looking at what was provided, two things, one suggest changing the admin directory now. I should have warned about posting the path to the admin directory.

Second: ```
25-Apr-2014 15:42:37 Europe/Helsinki] PHP Parse error: syntax error, unexpected ',' in /home/inarinzj/public_html/korushop/YOUR_ADMIN/includes/modules/product/collect_info.php on line 299


The above area of code is where your problem is.  Errors stop things, warnings, well they may lead to errors, but things continue to work.
25 Apr 2014, 5:10 PM
#5
tsehov avatar

tsehov

New Zenner

Join Date:
May 2012
Posts:
15
Plugin Contributions:
0

Re: Product name and description does not show at all

Thanks again.

There is still one little problem: on line 299 there are several occurences of ','.

line 299:
"<td class="main"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? htmlspecialchars(stripslashes($products_name[$languages[$i]['id']]), ENT_COMPAT, CHARSET, TRUE) : htmlspecialchars(zen_get_products_name($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)), zen_set_field_length(TABLE_PRODUCTS_DESCRIPTION, 'products_name')); ?></td>
</tr>"

25 Apr 2014, 5:18 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Product name and description does not show at all

tsehov:

Thanks again.

There is still one little problem: on line 299 there are several occurences of ','.

line 299:
"<td class="main"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? htmlspecialchars(stripslashes($products_name[$languages[$i]['id']]), ENT_COMPAT, CHARSET, TRUE) : htmlspecialchars(zen_get_products_name($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)), zen_set_field_length(TABLE_PRODUCTS_DESCRIPTION, 'products_name')); ?></td>
</tr>"

Two things: one recommend using the [CODE TAG(S) TO POST, THE OTHER AND I'm NOT SURE IF IT WAS AN ISSUE IN THAT VERSION OF ZC, IS THAT 299 MAY HAVE ACTUALLY MEANT LINE 300, COULD You POST THE LINE BEFORE ND AFTER THE ONE ABOVE?

I DIDN'T SEE ANY PROBLEMS WITH THE COMMAS IN THAT LINE AT LEAST NO GLARING PROBLEMS. Oops, sorry ended up with all caps. Sorry, wasn't yelling, but am also being lazy in not going back to retype in proper capitalization. Sorry. :)

25 Apr 2014, 5:36 PM
#7
tsehov avatar

tsehov

New Zenner

Join Date:
May 2012
Posts:
15
Plugin Contributions:
0

Re: Product name and description does not show at all

Thanks.

Here are lines 296 to 303:

?>
          <tr>
            <td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_NAME; ?></td>
            <td class="main"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? htmlspecialchars(stripslashes($products_name[$languages[$i]['id']]), ENT_COMPAT, CHARSET, TRUE) : htmlspecialchars(zen_get_products_name($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)), zen_set_field_length(TABLE_PRODUCTS_DESCRIPTION, 'products_name')); ?></td>
          </tr>
<?php
    }
?>
25 Apr 2014, 7:06 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Product name and description does not show at all

tsehov:

Thanks.Here are lines 296 to 303:```php
?>

25 Apr 2014, 7:38 PM
#10
tsehov avatar

tsehov

New Zenner

Join Date:
May 2012
Posts:
15
Plugin Contributions:
0

Re: Product name and description does not show at all

mc12345678:

Also, does the same issue occur when attempting to update an existing product? If not, then might be able to copy an existing product and then edit it/update it, if the new products are urgently needed to be added.

First of all Thank you.

Yes, unfortenately the same issue occurs when trying to update for instance the price of a product.

25 Apr 2014, 7:40 PM
#11
tsehov avatar

tsehov

New Zenner

Join Date:
May 2012
Posts:
15
Plugin Contributions:
0

Re: Product name and description does not show at all

stevesh:

Are you sure you're using PHP version 5.4.26 ?

Thanks, but the site management (cPanel) says it is 5.4.26.

25 Apr 2014, 7:55 PM
#12
tsehov avatar

tsehov

New Zenner

Join Date:
May 2012
Posts:
15
Plugin Contributions:
0

Re: Product name and description does not show at all

Now I noticed something interesting. Everything works fine when not using scandinavian letters (ä, ö, å).

Of course this is bit of a problem since the shop is finnish and the main language is finnish.

25 Apr 2014, 8:13 PM
#13
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Product name and description does not show at all

tsehov:

Now I noticed something interesting. Everything works fine when not using scandinavian letters (ä, ö, å).

Of course this is bit of a problem since the shop is finnish and the main language is finnish.

Okay, so this may be a problem of a different type then. Btw, although cpanel indicates the more recent version of php, what does ZC report from the admin panel and clicking on version.

As for the characters, does it make a difference if the first/last character isn't a "scandinavian" character?

What charset isbeing used? (I apologize that I don't know what may be the "right" charset, but I imagine the question would be asked and might as well answer now. :) )
Ie utf-8? Or some other?

25 Apr 2014, 8:36 PM
#14
tsehov avatar

tsehov

New Zenner

Join Date:
May 2012
Posts:
15
Plugin Contributions:
0

Re: Product name and description does not show at all

mc12345678:

Okay, so this may be a problem of a different type then. Btw, although cpanel indicates the more recent version of php, what does ZC report from the admin panel and clicking on version.

It says: 'PHP version: 5.4.26 (Zend: 2.4.0)'

mc12345678:

As for the characters, does it make a difference if the first/last character isn't a "scandinavian" character?

No, it does not seem to matter where a "scandinavian" is.

mc12345678:

What charset isbeing used?

Sorry, but I do not know where to check the used charset out.

25 Apr 2014, 8:47 PM
#15
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Product name and description does not show at all

tsehov:

It says: 'PHP version: 5.4.26 (Zend: 2.4.0)'

No, it does not seem to matter where a "scandinavian" is.

Sorry, but I do not know where to check the used charset out.

Fyi, reason I asked about what was in the version area of ZC was that I have heard of hosts installing an older version in the particular store directory and wanted to be sure that the store reported the same thing as cPanel.

Regarding the charset,off hand I forget exactly where to look in zC other than both configure.php files in the store's and admin's include folders, but from within zC again on the version screen, maybe you have something like SQLite Encoding available and to the right of that is the database's encoding?