Forums / Managing Customers and Orders / I have a very large error log file but I dont know what these errors mean

I have a very large error log file but I dont know what these errors mean

Locked

Views: 2,685

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
5 Mar 2010, 6:17 AM
#1
sportrecovery avatar

sportrecovery

New Zenner

Join Date:
Jan 2007
Posts:
33
Plugin Contributions:
0

I have a very large error log file but I dont know what these errors mean

Hi all,
My error log file recently started growing. It got up to 400mb and kind of jamed up my server for a bit. Old news. Deleted it but I want to fix teh errors its reporting.

I have looked at the lines it is saying are a problem but cant see anything unusual.

The errors are pretty much all the same and relate back to Jan 2007.

Any idea how I fix these would be great. Ive created test accounts but with no problems I can see.

Site address: http://entryzone.com.au/

So below are the two common lines in the error log.

[13-Feb-2010 18:20:27] PHP Warning: Invalid argument supplied for foreach() in /home/sportrec/public_html/entryzone.com.au/includes/templates/template_default/templates/tpl_create_account_success_default.php on line 26

[16-Feb-2010 13:53:56] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sportrec/public_html/entryzone.com.au/includes/languages/english/address_book.php on line 31

5 Mar 2010, 1:15 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: I have a very large error log file but I dont know what these errors mean

sportrecovery:

Hi all,
My error log file recently started growing. It got up to 400mb and kind of jamed up my server for a bit. Old news. Deleted it but I want to fix teh errors its reporting.

I have looked at the lines it is saying are a problem but cant see anything unusual.

The errors are pretty much all the same and relate back to Jan 2007.

Any idea how I fix these would be great. Ive created test accounts but with no problems I can see.

Site address: http://entryzone.com.au/

So below are the two common lines in the error log.

[13-Feb-2010 18:20:27] PHP Warning: Invalid argument supplied for foreach() in /home/sportrec/public_html/entryzone.com.au/includes/templates/template_default/templates/tpl_create_account_success_default.php on line 26

[16-Feb-2010 13:53:56] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sportrec/public_html/entryzone.com.au/includes/languages/english/address_book.php on line 31

FTP the following file to your hard drive:

/includes/languages/english/address_book.php

Open it in a plain text editor.

Look at what is being rendered in line 31

POST that line of code in this thread so we can see the error.

20 years a Zencart User

7 Mar 2010, 12:45 PM
#3
sportrecovery avatar

sportrecovery

New Zenner

Join Date:
Jan 2007
Posts:
33
Plugin Contributions:
0

Re: I have a very large error log file but I dont know what these errors mean

define('ADDRESS_BOOK_TITLE', 'Address Book Entries');

thanks in advance

7 Mar 2010, 1:33 PM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: I have a very large error log file but I dont know what these errors mean

sportrecovery:

define('ADDRESS_BOOK_TITLE', 'Address Book Entries');

That looks ok to me... The error is probably in the line before the one reported. However, since this is a very small file anyway perhaps it may be more convenient to paste the entire thing here for us to see.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

7 Mar 2010, 10:01 PM
#5
sportrecovery avatar

sportrecovery

New Zenner

Join Date:
Jan 2007
Posts:
33
Plugin Contributions:
0

Re: I have a very large error log file but I dont know what these errors mean

define('NAVBAR_TITLE_1', 'My Account');
define('NAVBAR_TITLE_2', 'Address Book');

define('HEADING_TITLE', 'My Personal Address Book');

define('PRIMARY_ADDRESS_TITLE', 'Primary Address');
define('PRIMARY_ADDRESS_DESCRIPTION', 'This address is used for the Entry details and billing address for Entries made using Entry Zone.<br /><br />'');

define('ADDRESS_BOOK_TITLE', 'Address Book Entries');

define('PRIMARY_ADDRESS', '(primary address)');

define('TEXT_MAXIMUM_ENTRIES', '<span class="coming"><strong>NOTE:</strong></span> A maximum of %s address book entries allowed.');
?>

7 Mar 2010, 10:06 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: I have a very large error log file but I dont know what these errors mean

Here is your error:

'This address is used for the Entry details and billing address for Entries made using Entry Zone.<br /><br />''

You have TWO single quotes at the end of this line.

Get rid of one of them

20 years a Zencart User

8 Mar 2010, 12:45 AM
#7
sportrecovery avatar

sportrecovery

New Zenner

Join Date:
Jan 2007
Posts:
33
Plugin Contributions:
0

Re: I have a very large error log file but I dont know what these errors mean

Thanks for that, I have done that.
2 questions. How do I clear the error log. I keep deleting the file but it appears again at the same size some hours later? Cant find anything in the zen car admin area. Do I do it in the database?

Also the other error reporting is in tpl_create_account_success_default.php line 26.

This is the code around there
/**

  • Used to loop thru and display address book entries
    */
    Line26 foreach ($addressArray as $addresses) {
    ?>

I just typed that line 26 bit in for your reference. Or is this error linked back to the other file?

8 Mar 2010, 1:17 AM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: I have a very large error log file but I dont know what these errors mean

sportrecovery:

How do I clear the error log. I keep deleting the file but it appears again at the same size some hours later? Cant find anything in the zen car admin area. Do I do it in the database?

Neither. You'll probably need to contact your webhost for this.

sportrecovery:

Also the other error reporting is in tpl_create_account_success_default.php line 26.

This is the code around there
/**

  • Used to loop thru and display address book entries
    */
    Line26 foreach ($addressArray as $addresses) {
    ?>

I just typed that line 26 bit in for your reference. Or is this error linked back to the other file?

Is this error still occuring? If not, it is probably safe to assume that both errors are related.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

8 Mar 2010, 2:44 AM
#9
sportrecovery avatar

sportrecovery

New Zenner

Join Date:
Jan 2007
Posts:
33
Plugin Contributions:
0

Re: I have a very large error log file but I dont know what these errors mean

Thankyou very much for all your help.
I will monitor the error log file and see what happens and contact my host to clean up the files.

Thanks again

4 Jul 2010, 1:33 PM
#10
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: I have a very large error log file but I dont know what these errors mean

I have one too and I'm not sure whats it is either. I know It's coming from an add on. Could you please take a peek and see what could be causing this. Thank you so much. Here is the error.
The numbers are beside the line.

[04-Jul-2010 06:02:20] PHP Warning: Invalid argument supplied for foreach() in /home/content/x/x/x/xxxxxxx/html/includes/functions/extra_functions/jscript.php on line 71

67 function getMinifyfiles($files, $request_string, $folder){
68 global $request_type, $current_page_base, $template;
69 $relative_path = $request_type == 'NONSSL' ?
DIR_WS_CATALOG : DIR_WS_HTTPS_CATALOG;
70 $files_paths = '';$result = array();
71 foreach($files as $file=>$order){

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

7 Jul 2010, 3:15 AM
#11
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: I have a very large error log file but I dont know what these errors mean

countrycharm:

I have one too and I'm not sure whats it is either. I know It's coming from an add on. Could you please take a peek and see what could be causing this. Thank you so much. Here is the error.
The numbers are beside the line.

[04-Jul-2010 06:02:20] PHP Warning: Invalid argument supplied for foreach() in /home/content/x/x/x/xxxxxxx/html/includes/functions/extra_functions/jscript.php on line 71

Mine was cause by css javascript loader addon. I was running the old version. When I updated to the new version all errors went away.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation