Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

where is STORE_PAGE_PARSE_TIME_LOG defined?


Lucky;)

Recommended Posts

Posted

in the file application_bottom.php is

 

error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT) . ' - ' . getenv('REQUEST_URI') . ' (' . $parse_time . 's)' . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);

 

where have STORE_PAGE_PARSE_TIME_LOG to be defined?

Posted

catalog/includes/functions/database.php. Look in there, 'cause that's where it's stored.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Posted
catalog/includes/functions/database.php. Look in there, 'cause that's where it's stored.

 

unfrtunately there is only one mention of STORE_PAGE_PARSE_TIME_LOG

 

  function tep_db_query($query, $link = 'db_link') {
global $$link;

if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
  error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
}

$result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error());

if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
   $result_error = mysql_error();
   error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
}

return $result;
 }

Posted

1 on or around line 40, and 1 on or around line 46. Along with application_top, those are the only 3 occurrences in my OSC that I have of 'STORE_DB_TRANSACTIONS'.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Posted

yep, my code above is the same you mentioned Line 40 and line 46.

 

I understand if a the constant is defined it should be like

define('STORE_PAGE_PARSE_TIME_LOG', 'home/catalog/errors.txt');

 

Am I right?

Posted
yep, my code above is the same you mentioned Line 40 and line 46.

 

I understand if a the constant is defined it should be like

define('STORE_PAGE_PARSE_TIME_LOG', 'home/catalog/errors.txt');

 

Am I right?

 

That define is installed into the databsae when you installed it

 

 

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Log Destination', 'STORE_PAGE_PARSE_TIME_LOG', '/var/log/www/tep/page_parse_time.log', 'Directory and filename of the page parse time log', '10', '2', now());

 

You can see it in the database

Posted
That define is installed into the databsae when you installed it

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Log Destination', 'STORE_PAGE_PARSE_TIME_LOG', '/var/log/www/tep/page_parse_time.log', 'Directory and filename of the page parse time log', '10', '2', now());

 

You can see it in the database

 

OK,

but when I do leave it alone I have a Warning:

Warning: error_log(): open_basedir restriction in effect. File(/var/log/www/tep/page_parse_time.log) is not within the allowed path(s): (/home/mysite/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/safecell/public_html/catalog/includes/application_bottom.php on line 20

 

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: Operation not permitted in /home/mysite/public_html/catalog/includes/application_bottom.php on line 20

 

Parse Time: 0.396s

 

Do you know what does it mean?

Posted
OK,

but when I do leave it alone I have a Warning:

Warning: error_log(): open_basedir restriction in effect. File(/var/log/www/tep/page_parse_time.log) is not within the allowed path(s): (/home/mysite/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/safecell/public_html/catalog/includes/application_bottom.php on line 20

 

Warning: error_log(/var/log/www/tep/page_parse_time.log): failed to open stream: Operation not permitted in /home/mysite/public_html/catalog/includes/application_bottom.php on line 20

 

Parse Time: 0.396s

 

Do you know what does it mean?

 

I would check:

1) does the file "tep/page_parse_time.log" exist

2) Is the permission on "tep" folder set correctly? Try setting it to 777

Posted
I would check:

1) does the file "tep/page_parse_time.log" exist

2) Is the permission on "tep" folder set correctly? Try setting it to 777

 

I can see, that I even dont have a tep folder (and also I don't have var/log/www/).

Is folder tep[/t] predefined or I can create it?

 

if I set the permition 777 will does it mean that somebody can have an access to the *.log file?

Posted

You didn't tell me that error before.

 

This is an easy one.

 

Register a path and a filename with right path in the Admin under ?LOGGING? or switch the LOGGING off, because if you don't have it set properly, you will get that error.

 

Fix:

Go to you ADMIN tool ... www.yoursite.com/catalog/admin, www.yoursite.com/admin, or whatever. Log in.

Go to Configuration.

Go to Logging.

Store Page Parse Time = highlight, and click "edit", and make sure it's 'false". Make 'em all false, in fact. But if you wanna make true, make sure you have the correct path, and permissions are set to 777 (readable, writeable, and executable). Just switch 'em all to false, though.

 

Voila! Error gone.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Posted

Voila! Error gone!

 

Thank you guys.

 

www.yoursite.com/catalog/admin - I corrected the path (+777) and error was gone.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...