Zen Cart Logo
Forums / General Questions / Problem with site after installing security patch

Problem with site after installing security patch

Locked

Views: 4,005

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
20 Sep 2008, 4:45 PM
#1
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Problem with site after installing security patch

I just uploaded this exactly as stated and now I cannot view my home page. What's up?

Thanks for your help!

20 Sep 2008, 4:46 PM
#2
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Problem with site after installing security patch

What did you upload?

Also, do you have a link to your website?

20 Sep 2008, 5:10 PM
#4
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Problem with site after installing security patch

Hi,

Can you confirm that.

You unzipped the file locally to give you a file called
security_patch_v138_20080919.php

You uploaded the unzipped file to your sites includes/extra_configures/ folder

If so, then deleting that file from your server should fix the problem.

Can you also give details of your server configuration

server operating system (windows/linux etc)
php version
mysql version

Also from your php settings

magic_quotes_gpc setting
register_globals setting

20 Sep 2008, 5:25 PM
#5
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Problem with site after installing security patch

Ok i deleted it from my server. there was no change.

What do you mean?

Also from your php settings

magic_quotes_gpc setting
register_globals setting

20 Sep 2008, 5:28 PM
#6
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Problem with site after installing security patch

Is your admin panel still accessible

20 Sep 2008, 6:05 PM
#8
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Problem with site after installing security patch

Ok I downloaded and checked the cache.

myDEBUG-1221932547.log - Clicked on show -

myDEBUG-1221933754.log
File Type: ASCII text


[20-Sep-2008 11:02:34] PHP Warning: main(includes/index_filters/default) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/digit124/public_html/includes/modules/pages/index/header_php.php on line 49
[20-Sep-2008 11:02:34] PHP Warning: main(includes/index_filters/default) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/digit124/public_html/includes/modules/pages/index/header_php.php on line 49
[20-Sep-2008 11:02:34] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/index_filters/default' (include_path='.:/usr/lib/php') in /home/digit124/public_html/includes/modules/pages/index/header_php.php on line 49

I then went to - includes/modules/pages/index/header.php.php. I cant tell if anything is wrong.

<?php /** * index header_php.php * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: header_php.php 4371 2006-09-03 19:36:11Z ajeh $ */ // This should be first line of the script: $zco_notifier->notify('NOTIFY_HEADER_START_INDEX'); // the following cPath references come from application_top/initSystem $category_depth = 'top'; if (isset($cPath) && zen_not_null($cPath)) { $categories_products_query = "SELECT count(*) AS total FROM " . TABLE_PRODUCTS_TO_CATEGORIES . " WHERE categories_id = :categoriesID"; $categories_products_query = $db->bindVars($categories_products_query, ':categoriesID', $current_category_id, 'integer'); $categories_products = $db->Execute($categories_products_query); if ($categories_products->fields['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = "SELECT count(*) AS total FROM " . TABLE_CATEGORIES . " WHERE parent_id = :categoriesID"; $category_parent_query = $db->bindVars($category_parent_query, ':categoriesID', $current_category_id, 'integer'); $category_parent = $db->Execute($category_parent_query); if ($category_parent->fields['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } // include template specific file name defines $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MAIN_PAGE, 'false'); require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); // set the product filters according to selected product type $typefilter = 'default'; if (isset($_GET['typefilter'])) $typefilter = $_GET['typefilter']; require(DIR_WS_INCLUDES . zen_get_index_filters_directory($typefilter . '_filter.php')); // query the database based on the selected filters $listing = $db->Execute($listing_sql); // if only one product in this category, go directly to the product page, instead of displaying a link to just one item: // if filter_id exists the 1 product redirect is ignored if (SKIP_SINGLE_PRODUCT_CATEGORIES=='True' and (!isset($_GET['filter_id']) and !isset($_GET['alpha_filter']))) { if ($listing->RecordCount() == 1) { zen_redirect(zen_href_link(zen_get_info_page($listing->fields['products_id']), ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing->fields['products_id'])); } } // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_INDEX'); ?>
20 Sep 2008, 6:06 PM
#9
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Problem with site after installing security patch

Why is it header.php.php? it should be header_php.php

20 Sep 2008, 6:20 PM
#10
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Problem with site after installing security patch

k,

Can you list all the files that exist in

inlcudes/extra_configures/
includes/extra_datafiles/

20 Sep 2008, 6:32 PM
#11
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Problem with site after installing security patch

Yes my admin is still accessable.

inlcudes/extra_configures/

bmz_image_handler_conf.php 1 k 0644
bmz_io_conf.php 1 k 0644
email_use_8bit.php 0 k 0644
enable_error_logging.php 2 k 0644
media_manager.php 0 k 0644

includes/extra_datafiles/

index_filters 755
Create New File
linkpoint_api_database_tables.php 0 k 0644
music_type_database_names.php 1 k 0644
rss_feed.php

20 Sep 2008, 6:34 PM
#12
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Problem with site after installing security patch

sorry my bad typo it is: header_php.php

20 Sep 2008, 7:00 PM
#13
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Problem with site after installing security patch

I am still not having any luck.

Thanks much!

20 Sep 2008, 7:33 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: Problem with site after installing security patch

travel124:

[20-Sep-2008 11:02:34] PHP Warning: main(includes/index_filters/default) ... failed to open stream: No such file or directory...

I suspect the missing file or folder is probably part of your problem ...

Did you perhaps drag-and-drop the index_filters folder to some other place mistakenly?

20 Sep 2008, 7:39 PM
#15
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,883
Plugin Contributions:
3

Re: Problem with site after installing security patch

following up on drbytes post.

It looks like you have moved the index_filter directory - so that it is now inside includes/extra_datafiles/

20 Sep 2008, 8:13 PM
#16
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Problem with site after installing security patch

No I don't recall doing that but thanks I will check it out.

20 Sep 2008, 10:21 PM
#17
travel124 avatar

travel124

Zen Follower

Join Date:
Mar 2006
Location:
White Pigeon, MI
Posts:
160
Plugin Contributions:
0

Re: Problem with site after installing security patch

okie dokie that did it. now all is working well. Thanks guys!