Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default site dissapeared.. Help

    Hi
    My site is http://www.afro-masks.com/ is gone ,when I try to enter my admin, I can't even enter and I get this message:

    Parse error: syntax error, unexpected T_CASE in /home/a8033afr/public_html/includes/languages/english/meta_tags.php on line 67

    I just added the testimonial add on and everything worked fine, then I changed the meta tag title

    Wen I look up the file and see rule 67 I see this:

    rule 67 : case 'testimonials_manager_all_testimonials':

    $sql = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = '" . (int)$_SESSION['languages_id'] . "' order by date_added DESC, testimonials_title";
    $testimonials = $db->Execute($sql);
    while (!$testimonials->EOF) {
    $testimonial_string_metatags .= zen_clean_html($testimonials->fields['testimonials_title']) . METATAGS_DIVIDER;

    Help.

  2. #2
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default Re: site dissapeared.. Help

    When I reinstall the original meta tags file my site is again on the internet, so I suppose it has something to do with the following code I inserted in my meta tags file. (inserted at the end)

    //TESTIMONIALS:
    case 'testimonials_manager_all_testimonials':

    $sql = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = '" . (int)$_SESSION['languages_id'] . "' order by date_added DESC, testimonials_title";
    $testimonials = $db->Execute($sql);
    while (!$testimonials->EOF) {
    $testimonial_string_metatags .= zen_clean_html($testimonials->fields['testimonials_title']) . METATAGS_DIVIDER;


    $testimonials->MoveNext();

    } //EOF
    define('META_TAG_TITLE', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
    define('META_TAG_DESCRIPTION', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
    define('META_TAG_KEYWORDS', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
    break;

    case 'testimonials_manager':
    define('META_TAG_TITLE', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . $page_check->fields['testimonials_title']);
    define('META_TAG_DESCRIPTION', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . zen_trunc_string($page_check->fields['testimonials_html_text'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH));
    define('META_TAG_KEYWORDS', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . $page_check->fields['testimonials_title']);
    break;

  3. #3
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: site dissapeared.. Help

    I don't know this module, but is there a SQL patch that needs to be run?

  4. #4
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default Re: site dissapeared.. Help

    yes there is and the funny thing is that at first it did work fine

    here is the SQL file...:

    #Testimonials Manager install SQL
    # For Zen-Cart 1.3.8
    # Last Updated: 1/9/2009
    # run this sql patch using the Zen-Cart Sql Patches tool
    # (admin -> tools -> install sql patches)
    # New configuration options are added to the zen_configuration table.
    # For best results, cut-and-paste the code into the query field and press 'Send' instead.

    SET @configuration_group_id=0;
    SELECT @configuration_group_id:=configuration_group_id
    FROM configuration_group
    WHERE configuration_group_title= 'Testimonials Manager'
    LIMIT 1;

    DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id AND @configuration_group_id != 0;
    DELETE FROM configuration WHERE configuration_key = 'DEFINE_TESTIMONIAL_STATUS';
    DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND @configuration_group_id != 0;

    INSERT INTO configuration_group VALUES (NULL, 'Testimonials Manager', 'Testimonials Manager Display Settings', '1', '1');
    SET @configuration_group_id=last_insert_id();
    UPDATE configuration_group SET sort_order = @configuration_group_id WHERE configuration_group_id = @configuration_group_id;

    INSERT INTO configuration VALUES (NULL, 'Number Of Testimonials to display in Testimonials Sidebox', 'MAX_DISPLAY_TESTIMONIALS_MANAGER_TITLES', '5', 'Set the number of testimonials to display in the Latest Testimonials box.', @configuration_group_id, 1, NULL, now(), NULL, NULL);

    INSERT INTO configuration VALUES (NULL, 'Testimonial Title Minimum Length', 'ENTRY_TESTIMONIALS_TITLE_MIN_LENGTH', '2', 'Minimum length of link title.', @configuration_group_id, 2, NULL, now(), NULL, NULL), (NULL, 'Testimonial Text Minimum Length', 'ENTRY_TESTIMONIALS_TEXT_MIN_LENGTH', '10', 'Minimum length of Testimonial description.', @configuration_group_id, 3, NULL, now(), NULL, NULL), (NULL, 'Testimonial Text Maximum Length', 'ENTRY_TESTIMONIALS_TEXT_MAX_LENGTH', '1000', 'Maximum length of Testimonial description.', @configuration_group_id, 3, NULL, now(), NULL, NULL), (NULL, 'Testimonial Contact Name Minimum Length', 'ENTRY_TESTIMONIALS_CONTACT_NAME_MIN_LENGTH', '2', 'Minimum length of link contact name.', @configuration_group_id, 4, NULL, now(), NULL, NULL);

    INSERT INTO configuration VALUES (NULL, 'Display Truncated Testimonials in Sidebox', 'DISPLAY_TESTIMONIALS_MANAGER_TRUNCATED_TEXT', 'true', 'Display truncated text in sidebox', @configuration_group_id, 5, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

    INSERT INTO configuration VALUES (NULL, 'Length of truncated testimonials to display', 'TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH', '150', 'If Display Truncated Testimonials in Sidebox is true - set the amount of characters to display from the Testimonials in the Testimonials Manager sidebox.', @configuration_group_id, 6, NULL, now(), NULL, NULL);

    INSERT INTO configuration VALUES (NULL, 'Number Of Testimonials to display on all testimonials page', 'MAX_DISPLAY_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS', '5', 'Set the number of testimonials to display on the all testimonials page.', @configuration_group_id, 7, NULL, now(), NULL, NULL);

    INSERT INTO configuration VALUES (NULL, 'Display Date Published on Testimonials page', 'DISPLAY_TESTIMONIALS_DATE_PUBLISHED', 'true', 'Display date published on testimonials page', @configuration_group_id, 8, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

    INSERT INTO configuration VALUES (NULL, 'Display View All Testimonials Link In Sidebox', 'DISPLAY_ALL_TESTIMONIALS_TESTIMONIALS_MANAGER_LINK', 'true', 'Display View All Testimonials Link In Sidebox', @configuration_group_id, 9, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

    INSERT INTO `configuration` VALUES (NULL, 'Display Add New Testimonial Link In Sidebox', 'DISPLAY_ADD_TESTIMONIAL_LINK', 'true', 'Display Add New Testimonial Link In Sidebox', @configuration_group_id, 10, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

    INSERT INTO `configuration` VALUES (NULL, 'Testimonial Image Width', 'TESTIMONIAL_IMAGE_WIDTH', '80', 'Set the Width of the Testimonial Image', @configuration_group_id, 11, NULL, '2007-08-21 12:04:10', NULL, NULL);
    INSERT INTO `configuration` VALUES (NULL, 'Testimonial Image Height', 'TESTIMONIAL_IMAGE_HEIGHT', '80', 'Set the Height of the Testimonial Image', @configuration_group_id, 12, NULL, '2007-08-21 12:04:10', NULL, NULL);
    INSERT INTO `configuration` VALUES (NULL, 'Testimonial Image Directory', 'TESTIMONIAL_IMAGE_DIRECTORY', 'testimonials/', 'Set the Directory for the Testimonial Image', @configuration_group_id, 13, NULL, '2007-08-21 12:04:10', NULL, NULL);

    INSERT INTO `configuration` VALUES (NULL, 'Display Company Name field', 'TESTIMONIALS_COMPANY', 'true', 'Display Company Name field', @configuration_group_id, 14, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

    INSERT INTO `configuration` VALUES (NULL, 'Display City field', 'TESTIMONIALS_CITY', 'true', 'Display City field', @configuration_group_id, 15, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

    INSERT INTO `configuration` VALUES (NULL, 'Display Country field', 'TESTIMONIALS_COUNTRY', 'true', 'Display Country field', @configuration_group_id, 16, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');

    INSERT INTO configuration VALUES (NULL, 'Only registered customers may submit a testimonial', 'REGISTERED_TESTIMONIAL', 'true', 'Only registered customers may submit a testimonial', @configuration_group_id, 17, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
    INSERT INTO `configuration` VALUES (NULL, 'Display All Languages', 'TESTIMONIALS_DISPLAY_ALL_LANGUAGES', 'true', 'Display All Languages', @configuration_group_id, 18, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
    INSERT INTO `configuration` VALUES (NULL, 'Testimonial - Show Store Name and Address', 'TESTIMONIAL_STORE_NAME_ADDRESS', 'true', 'Include Store Name and Address', @configuration_group_id, 19, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');


    INSERT INTO `configuration` VALUES (NULL, 'Define Testimonial', 'DEFINE_TESTIMONIAL_STATUS', '1', 'Enable the Defined Testimonial Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 999, NULL, now(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');

    INSERT INTO `configuration` VALUES (NULL, 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, NULL, now(), NULL, NULL);
    INSERT INTO `configuration` VALUES (NULL, 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, NULL, now(), NULL, NULL);
    INSERT INTO `configuration` VALUES (NULL, 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, NULL, now(), NULL, NULL);
    INSERT INTO `configuration` VALUES (NULL, 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, now(), NULL, 'zen_cfg_textarea_small(');

    DROP TABLE IF EXISTS testimonials_manager;
    CREATE TABLE testimonials_manager (
    `testimonials_id` int(11) NOT NULL auto_increment,
    `language_id` int(11) NOT NULL default '0',
    `testimonials_title` varchar(64) NOT NULL default '',
    `testimonials_url` VARCHAR( 255 ) NULL DEFAULT NULL,
    `testimonials_name` text NOT NULL,
    `testimonials_image` varchar(254) NOT NULL default '',
    `testimonials_html_text` text,
    `testimonials_mail` text NOT NULL,
    `testimonials_company` VARCHAR( 255 ) NULL DEFAULT NULL,
    `testimonials_city` VARCHAR( 255 ) NULL DEFAULT NULL,
    `testimonials_country` VARCHAR( 255 ) NULL DEFAULT NULL,
    `testimonials_show_email` char(1) default '0',
    `status` int(1) NOT NULL default '0',
    `date_added` datetime NOT NULL default '0000-00-00 00:00:00',
    `last_update` datetime NULL default NULL,
    PRIMARY KEY (`testimonials_id`)
    ) TYPE=MyISAM AUTO_INCREMENT=2 ;

    INSERT INTO `testimonials_manager` VALUES (1, 1, 'Great', '', 'Clyde Designs', '', 'This is just a test submission to show you how it looks, great, eh?', '[email protected]', NULL, NULL, NULL, 0, 1, now(), NULL);

  5. #5
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: site dissapeared.. Help

    So when you installed the module, you ALSO ran the SQL patch via:

    admin>>>tools>>>Install SQL Patches ?

  6. #6
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default Re: site dissapeared.. Help

    yes, I installed it via the Install SQL Patches

  7. #7
    Join Date
    Aug 2008
    Posts
    340
    Plugin Contributions
    0

    Default Re: site dissapeared.. Help

    Is it OK to insert the meta tags code at the end of the meta tags file?

 

 

Similar Threads

  1. please help ... images have dissapeared/not loading!
    By etorf9751 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 27 Jul 2010, 05:06 PM
  2. Help text/content dissapeared after security recommendations
    By lieven23 in forum General Questions
    Replies: 6
    Last Post: 22 Oct 2009, 06:39 PM
  3. Help! Atributes have dissapeared from ADMIN
    By Redcinamn in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 Aug 2008, 07:23 PM
  4. Template dissapeared
    By happypappy in forum General Questions
    Replies: 1
    Last Post: 6 Aug 2007, 11:49 PM
  5. Modules Dissapeared?
    By ehdesign in forum General Questions
    Replies: 9
    Last Post: 5 Apr 2007, 04:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR