Forums / General Questions / PHP warnings suddenly start appearing in the log folder

PHP warnings suddenly start appearing in the log folder

Started by delia on 11 Mar 2015, 11:30 AM · Views: 1,887

Results 21 to 27 of 27
12 Mar 2015, 7:55 PM
#21
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

PHP warnings suddenly start appearing in the log folder

It seems to be mostly commented out. It is the default file for 1.5.1

  $list_box_contents[$rows][$col] = array('align' => $lc_align,
                                              'params' => 'class="productListing-data"',
                                              'text'  => $lc_text);
    }

    // add description and match alternating colors
    //if (PRODUCT_LIST_DESCRIPTION > 0) {
    //  $rows++;
    //  if ($extra_row == 1) {
    //    $list_box_description = "productListing-data-description-even";
    //    $extra_row=0;
    //  } else {
    //    $list_box_description = "productListing-data-description-odd";
    //    $extra_row=1;
    //  }
    //  $list_box_contents[$rows][] = array('params' => 'class="' . $list_box_description . '" colspan="' . $zc_col_count_description . '"',
    //  'text' => zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION));
    //}
    $listing->MoveNext();
  }

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

12 Mar 2015, 8:36 PM
#22
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,120
Plugin Contributions:
56

Re: PHP warnings suddenly start appearing in the log folder

No, it's totally commented-out! Do you have anything in /includes/modules/classic/product_listing.php?

12 Mar 2015, 10:24 PM
#23
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,743
Plugin Contributions:
56

Re: PHP warnings suddenly start appearing in the log folder

You're looking at the wrong thing then Delia. Line 178 was the caller of the function that gave the warning - it can't be commented out. Check the template value again in admin->tools->Template Selection.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

12 Mar 2015, 10:55 PM
#24
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: PHP warnings suddenly start appearing in the log folder

New information does make it look like there are server changes. So I'm going to leave it at that.

The cart had changes to the default 1.5.1 version and all of those changes no longer work. Perhaps changed for an earlier version of PHP? I don't know but there are definitely more issues than the simple changes I made.

Thanks everyone for providing assistance and advice. You are the reason why I am a Zen Cart person!!!!!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

12 Mar 2015, 11:15 PM
#25
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: PHP warnings suddenly start appearing in the log folder

I just checked several other 1.5.1 sites on the server and they are not throwing errors. That should help with the troubleshooting a bit

Zen cart PCI compliant Hosting

13 Mar 2015, 1:34 AM
#26
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: PHP warnings suddenly start appearing in the log folder

There had been changes to some of the default files on the server and it does look like they might have been the source of the problems. Turns out there was actually a full php error happening in checkout. The client finally realized she hadn't gotten an order all day. Once she checked it out and ran into that white screen of death, I was able to pinpoint the file and the problem for that. Something had been commented out that all of sudden needed to be used. I'm sure we'll never really know all the details and I figure all her problems will be resolved once she upgrades to 1.5.4.

That's the dangers of coming into an existing website... Troubleshooting becomes a major part of my job and some days, I just don't want it to be!

Once again thanks everyone.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

2 Apr 2015, 11:36 PM
#27
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: PHP warnings suddenly start appearing in the log folder

So I'm told that the reason was discovered " turns out it was an invalid admin settings for the product listing description. the value was blank and it should have been 0." Never occurred to me that could be a problem. Next time weirdness arises perhaps I should look deeper into the database!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo