|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-10-13 17:37 UTC] tm8544 at hotmail dot com
Description: ------------ 7.2.0RC4 and also 7.2.0RC3 caused following lines in Apache error.log after server or Apache service (re)start. In this case, on Thursday evening after updating to 7.2.0RC4 + Apache restart, and on Friday Morning after scheduled server restart. Line 491: Thu Oct 12 22:25:05 2017 (4844): Warning Internal error: wrong size calculation: D:\-folder-name-replaced-\kauppa\includes\classes\seo.class.php start=0x0000000021275750, end=0x00000000212c4b70, real=0x00000000212c4a50 Line 493: Thu Oct 12 22:25:05 2017 (4844): Warning Internal error: wrong size calculation: D:\-folder-name-replaced-\kauppa\includes\functions\information.php start=0x0000000021308bd0, end=0x000000002130cea0, real=0x000000002130ce80 Line 495: Thu Oct 12 22:53:46 2017 (4844): Warning Internal error: wrong size calculation: D:\HTTPS-SERVER-D\mysqladm1n007\libraries\core.lib.php start=0x0000000021c23ce0, end=0x0000000021c39480, real=0x0000000021c39460 Line 515: Fri Oct 13 05:53:52 2017 (7392): Warning Internal error: wrong size calculation: D:\-folder-name-replaced-\kauppa\includes\classes\seo.class.php start=0x0000000021264278, end=0x00000000212b3698, real=0x00000000212b3578 Line 517: Fri Oct 13 05:53:53 2017 (7392): Warning Internal error: wrong size calculation: D:\-folder-name-replaced-\kauppa\includes\functions\information.php start=0x00000000212f76f8, end=0x00000000212fb9c8, real=0x00000000212fb9a8 Line 519: Fri Oct 13 05:54:11 2017 (7392): Warning Internal error: wrong size calculation: D:\HTTPS-SERVER-D\mysqladm1n007\libraries\core.lib.php start=0x0000000021abfc30, end=0x0000000021ad53d0, real=0x0000000021ad53b0 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 23:00:01 2025 UTC |
file 1: information.php ---------------- <?php /* Module: Information Pages Unlimited File date: 2007/02/17 Based on the FAQ script of adgrafics Adjusted by Joeri Stegeman (joeri210 at yahoo.com), The Netherlands osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ //// /************************************************ Modified by Robert Fisher aka Thunderace 23 March 2006 Information_children mod This file now shows highlights and children in the same manner as osCommerce ************************************************/ function tep_information_show_category($information_group_id = 1) { global $sitemapString, $languages_id; $information_tree = array(); $informationString = ''; $parent_child_selected = ''; // Retrieve information from db // ID set by module for Information box $child_information = array(); $information_query = tep_db_query("SELECT information_id, information_title, parent_id FROM " . TABLE_INFORMATION . " WHERE visible='1' and language_id='" . $languages_id ."' and information_group_id = '" . $information_group_id . "' ORDER BY sort_order"); while($information = tep_db_fetch_array($information_query)) { $information_tree[$information['information_id']] = array( 'info_title' => $information['information_title'], 'parent_id' => $information['parent_id'], 'info_next_id' => 0 ); if ($information_tree[$information['information_id']]['parent_id'] != '0') { $child_information[] = array ( 'parent_info_id' => $information['parent_id'], 'child_info_id' => $information['information_id'] ); } } $count_child = count($child_information); // Test if a child has been requested and set $parent_child_selected for ( $i = 1; $i < ($count_child+1); $i++ ) { if ((isset($_GET['info_id'])) && ($child_information[$i]['child_info_id'] == $_GET['info_id'])) { $parent_child_selected = $child_information[$i]['parent_info_id']; } } // Run through the $information_tree to find all pages // while ($element = each*($information_tree)) { foreach($information_tree as $key => $element) { // if (!isset($information_tree[$element['_key_']]['parent_id']) || ($information_tree[$element['_key_']]['parent_id'] == 0)) { if (!isset($element['parent_id']) || ($element['parent_id'] == 0)) { //Set the main title to bold if it was selected or one of its children were selected if (((isset($_GET['info_id'])) && ($_GET['info_id'] == $key)) || ($parent_child_selected == $key)) { $informationString .= '<a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $key) . '"><b>•' . $information_tree[$key]['info_title'] . '</b></a><br />'; } else { $informationString .= '<a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $key) . '">' . $information_tree[$key]['info_title'] . '</a><br />'; //Sitemap only $sitemapString .= '<li><a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $key) . '">' . $information_tree[$key]['info_title'] . '</a></li>' . "\n"; } //Just for sitemap $ul = false; for ( $i = 1; $i < ($count_child+1); $i++ ) { if ($child_information[$i]['parent_info_id'] == $key) { if ($ul == false) { $sitemapString .= '<ul>' . "\n"; $ul = true; } $sitemapString .= '<li><a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $child_information[$i]['child_info_id']) . '">' . $information_tree[$child_information[$i]['child_info_id']]['info_title'] . '</a></li>' . "\n"; } if (($i == $count_child) && ($ul == true)) { $sitemapString .= '</ul>' . "\n"; } } //End just for sitemap //Show children if they exist if (((isset($_GET['info_id'])) && ($_GET['info_id'] == $key)) || ($parent_child_selected == $key)) { for ( $i = 0; $i < ($count_child); $i++ ) { if ($child_information[$i]['parent_info_id'] == $key) //Show a child as bold if it was selected if ((isset($_GET['info_id'])) && ($_GET['info_id'] == $child_information[$i]['child_info_id'])) { $informationString .= ' <a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $child_information[$i]['child_info_id']) . '"><b>' . $information_tree[$child_information[$i]['child_info_id']]['info_title'] . '</b></a><br />'; } else { $informationString .= ' <a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $child_information[$i]['child_info_id']) . '">' . $information_tree[$child_information[$i]['child_info_id']]['info_title'] . '</a><br />'; } } } } } return $informationString; } //// // Define customer greetings function tep_information_customer_greeting_define() { global $customer_id, $customer_first_name, $languages_id, $category_depth; if ( $category_depth == 'top' ) { // Retrieve information from db $information_group_id = 2; // ID set by module for Entrance messages $information_query = tep_db_query("select information_title, information_description from " . TABLE_INFORMATION . " where language_id = '" . (int)$languages_id . "' and information_group_id = '" . (int)$information_group_id . "'"); while ($information = tep_db_fetch_array($information_query)) { // if($information['information_title'] == 'HEADING_TITLE') define($information['information_title'], $information['information_description']); } } } //// // Return a customer greeting function tep_information_customer_greeting() { global $customer_id, $customer_first_name; if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW)); } else { $greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); } return $greeting_string; } ?>