Jump to content
Latest News: (loading..)

auster

Members
  • Content count

    15
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Keiron
  • Gender
    Male
  • Location
    Maxstoke

Recent Profile Visitors

1,803 profile views
  1. auster

    Fatal error after server crash

    Thanks for all your help people, much appreciated. However the client decided to move on and is having a completely new website using Worpress designed for him on his other .co.uk domain. Mine is on his .com domain and that will be transferred to his new host too as and when. Hey ho......
  2. auster

    Fatal error after server crash

    There isn't any way to go higher up the chain, they only do support chat nowadays, not even an email address to put in a complaint to. I've had good service for several years from them but that's now gone. As you may have gathered, my knowledge of oscommerce and coding in general is very limited. How would I find out if 5.6 was available?
  3. auster

    Fatal error after server crash

    Hi Malcolm, 2.3.1 It's G-AJAE a 1946 Auster J1N which I had share in for several years.
  4. auster

    Fatal error after server crash

    These are the last few exchanges of a long online 'support' chat! I do sincerely apologize, however, this issue falls outside of what HostGator live support is able to troubleshoot and resolve. While I have tried my best to find a resolution to the issue you are experiencing, Unfortunately, it appears I have exhausted all avenues that I have in live support to get your issue corrected. I recommend contacting a professional web developer or a development support forum for your software. Me: But why can't your technicians simply add mysql functions in PHP7 in addition to mysqli functions, it's perfectly possible? We did everything to solve it how ever, this issue needs to be addressed by a Web Developer as it is out of our scope of support. Me: With respect have you asked your technicians to add mysql funtions to PHP 7? Yes we did add that information. Me: And are they saying that it can't be done, or that they are not willing to do it? We did everything to solve the issue. However, the issue is still existing. Fixing issues with codes is not supported within live chat but we did extend our support for you. Please do contact a web developer to further assist you as this is out of our scope of support. Me: Disgusting, given that the problem was caused by your server crash I understand. Our Engineers are doing their best to resolve on the server issue but this issues is caused by codes. If you know the process, please do it as we do not support coding issue. Me: I don't have access to your server! If your technicians don't know how to recompile PHP then you're going to have a lot of problems going forward! That's it, they cut the online 'support' connection dead. Can anyone help to upgrade oscommerce for a reasonable fee?
  5. auster

    Fatal error after server crash

    I've asked and I'm waiting for a response.
  6. auster

    Fatal error after server crash

    I changed the three instances of mysql to mysqli, do I have to change it anywhere else in database.php? function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysqli_pconnect($server, $username, $password); } else { $$link = mysqli_connect($server, $username, $password); } if ($$link) mysqli_select_db($database); I now get this additional Warning:- Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in /home/pumabuil/public_html/pumacat/includes/functions/database.php on line 22 Fatal error: Uncaught Error: Call to undefined function mysql_query() in /home/pumabuil/public_html/pumacat/includes/functions/database.php:44 Stack trace: #0 /home/pumabuil/public_html/pumacat/includes/application_top.php(68): tep_db_query('select configur...') #1 /home/pumabuil/public_html/pumacat/index.php(13): require('/home/pumabuil/...') #2 {main} thrown in /home/pumabuil/public_html/pumacat/includes/functions/database.php on line 44
  7. auster

    Fatal error after server crash

    Correction. sorry it's Osc version 2.3.1
  8. auster

    Fatal error after server crash

    Thanks Phil, OK, it shows mysql1 but not mysql. OsC version is 2.3.3.4
  9. auster

    Fatal error after server crash

    Thanks Jack, I did try to use mysqli but it didn't work. I'm going to ask my host if they will recompile, will come back on this.
  10. Hi, My Hosting server crashed last Friday. It's since been restored from a back up I'm told, but now I'm getting the following error when trying to open the oscommerce part of the website:- Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in /home/pumabuil/public_html/pumacat/includes/functions/database.php:22 Stack trace: #0 /home/pumabuil/public_html/pumacat/includes/application_top.php(65): tep_db_connect() #1 /home/pumabuil/public_html/pumacat/index.php(13): require('/home/pumabuil/...') #2 {main} thrown in /home/pumabuil/public_html/pumacat/includes/functions/database.php on line 22 I queried it and the only answer I got was that it was an error in my code! I hadn't changed anything prior to the server crash. Any help would be appreciated, please.
  11. auster

    [Addon} Modular Front Page

    Great Addon, setup without any problems. Q. Is it possible to increase the number of featured items from 10 to 20 or more? Thanks Keiron
  12. Hi Gergely, Cracked it! I started again with a clean 2.3.3.4 install and went through the HFC install meticulously......same result. So I 'viewed' hfc_information.php in my FTP program and it showed this error message 'Lines ending in solitary carriage returns detected. (Possibly a Macintosh text file.) Converting to UNIX format.' So I clicked OK, copied and pasted the converted contents over the installed file and the error disappeared in Admin. I was then able to install as per the instructions. I had to do the same for five of the files out of ten. Great Module; thanks very much for your help and I hope the above helps others :-) Keiron
  13. <?php/* $Id$ Author: Tóth Gergely http://oscom.hu v1.0 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License*/ class hfc_information { var $code = 'hfc_information'; var $group = 'header_footer_contents'; var $title; var $description; var $sort_order; var $enabled = false; function hfc_information() { $this->title = MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_TITLE; $this->description = MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_DESCRIPTION; if ( defined('MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS') ) { $this->sort_order = MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SORT_ORDER; $this->enabled = (MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS == 'True'); switch (MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONTENT_PLACEMENT) { case 'Left Header' : $this->group = 'header_contents_left'; break; case 'Center Header' : $this->group = 'header_contents_center'; break; case 'Right Header' : $this->group = 'header_contents_right'; break; case 'Header Line' : $this->group = 'header_line'; break; case 'Left Footer' : $this->group = 'footer_contents_left'; break; case 'Center Footer' : $this->group = 'footer_contents_center'; break; case 'Right Footer' : $this->group = 'footer_contents_right'; break; case 'Footer Line' : $this->group = 'footer_line'; break; } } } function execute() { global $oscTemplate; $data = '<div class="clear"></div>'; $data .= '<hr />' . ' <div id="infoHeader">' . ' <a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SPECIALS . '</a> ' . ' <a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SHIPPING . '</a> ' . ' <a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_PRIVACY . '</a> ' . ' <a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONDITIONS . '</a> ' . ' <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONTACT . '</a>' . '</div>' . '<hr />'; $data .= '<div class="clear"></div>'; $oscTemplate->addBlock($data, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Currencies Module', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONTENT_PLACEMENT', 'Right Header', 'Should the module be loaded in the header or the footer position?', '6', '1', 'tep_cfg_select_option(array(\'Left Header\', \'Center Header\', \'Right Header\', \'Header Line\', \'Left Footer\', \'Center Footer\', \'Right Footer\', \'Footer Line\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Module Version Number', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_VERSION_NUMBER', 'v1.0', 'Version number of installed module', '6', '1', 'tep_sanitize_string(', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_VERSION_NUMBER','MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONTENT_PLACEMENT', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SORT_ORDER'); } }?>
  14. Here it is, TIA, Keiron <?php/* $Id$ Author: Tóth Gergely http://oscom.hu v1.0 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License*/ class hfc_information { var $code = 'hfc_information'; var $group = 'header_footer_contents'; var $title; var $description; var $sort_order; var $enabled = false; function hfc_information() { $this->title = MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_TITLE; $this->description = MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_DESCRIPTION; if ( defined('MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS') ) { $this->sort_order = MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SORT_ORDER; $this->enabled = (MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS == 'True'); switch (MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONTENT_PLACEMENT) { case 'Left Header' : $this->group = 'header_contents_left'; break; case 'Center Header' : $this->group = 'header_contents_center'; break; case 'Right Header' : $this->group = 'header_contents_right'; break; case 'Header Line' : $this->group = 'header_line'; break; case 'Left Footer' : $this->group = 'footer_contents_left'; break; case 'Center Footer' : $this->group = 'footer_contents_center'; break; case 'Right Footer' : $this->group = 'footer_contents_right'; break; case 'Footer Line' : $this->group = 'footer_line'; break; } } } function execute() { global $oscTemplate; $data = '<div class="clear"></div>'; $data .= '<hr />' . ' <div id="infoHeader">' . ' <a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SPECIALS . '</a> ' . ' <a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SHIPPING . '</a> ' . ' <a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_PRIVACY . '</a> ' . ' <a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONDITIONS . '</a> ' . ' <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONTACT . '</a>' . '</div>' . '<hr />'; $data .= '<div class="clear"></div>'; $oscTemplate->addBlock($data, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Currencies Module', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONTENT_PLACEMENT', 'Right Header', 'Should the module be loaded in the header or the footer position?', '6', '1', 'tep_cfg_select_option(array(\'Left Header\', \'Center Header\', \'Right Header\', \'Header Line\', \'Left Footer\', \'Center Footer\', \'Right Footer\', \'Footer Line\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Module Version Number', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_VERSION_NUMBER', 'v1.0', 'Version number of installed module', '6', '1', 'tep_sanitize_string(', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_VERSION_NUMBER','MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_STATUS', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_CONTENT_PLACEMENT', 'MODULE_HEADER_FOOTER_CONTENTS_INFORMATION_SORT_ORDER'); } }?>
  15. Hi, I've got this when trying to install in a new/clean 2.3.3.4 setup:- Parse error: syntax error, unexpected T_CLASS in /home/raptest/public_html/chefs1/includes/modules/header_footer_contents/hfc_information.php on line 1 Help appreciated. Keiron
×