Forums / General Questions / Error in Product Info Page in Admin

Error in Product Info Page in Admin

Started by sle39lvr on 29 Jan 2015, 6:07 PM · Views: 590

Results 1 to 4 of 4
29 Jan 2015, 6:07 PM
#1
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Error in Product Info Page in Admin

When I goto a product info page in admin, I get a blank screen for all the products.

Error log:

[28-Jan-2015 14:28:26] PHP Parse error:  syntax error, unexpected T_STRING in /home1/mydomain/public_html/my-admin/includes/modules/product/collect_info.php on line 402

referred line is here:

                            <td class="main" width="100%"><?php echo zen_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '30', htmlspecialchars((isset($products_description[$languages[$i]['id']])iso-latin-1) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)); //,'id="'.'products_description' . $languages[$i]['id'] . '"'); ?></td>

Any ideas? :(

29 Jan 2015, 6:11 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Error in Product Info Page in Admin

Where did this come from, in the middle of it?

iso-latin-1

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Jan 2015, 6:14 PM
#3
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Error in Product Info Page in Admin

Not sure.. so just remove that exact chunk?

29 Jan 2015, 6:27 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Error in Product Info Page in Admin

I recommend you compare that file against the original one from the official Zen Cart zip, and make whatever fixes are appropriate based on the differences you see.
WinMerge or Beyond Compare will make that as fast as 15 seconds to do the compare and another couple minutes to look at all the differences visually.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.