Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2006
    Posts
    102
    Plugin Contributions
    0

    phpBB forum link from site missing '/'

    Having a problem with link from site to my forum. Forum setup fine on same DB, Set to enable in 'mystore' in admin and ther link appears in my information menu BUT the link is missing a '/' in it. it should be:
    http://www.edenspirit.co.uk/forum/index.php

    But it apperas as:
    http://www.edenspirit.co.ukforum/index.php '/' missing!!

    Not sure what to do here. Pobably set something wrong up somewhere but not sure how to correct it.

    Any help appreciated...

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: phpBB forum link from site missing '/'

    Please post your /includes/configure.php here without the password
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2006
    Posts
    102
    Plugin Contributions
    0

    Default Re: phpBB forum link from site missing '/'

    Hi Doc..

    As requested my conf file:

    <?php
    /**
    *
    * @package Configuration Settings
    * @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
    */


    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    define('HTTP_SERVER', 'http://www.edenspirit.co.uk');
    define('HTTPS_SERVER', 'https://web30.secure-secure.co.uk');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/edenspirit.co.uk/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/home/sites/edenspirit.co.uk/public_html/forum/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/home/sites/edenspirit.co.uk/public_html/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');



    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/sites/edenspirit.co.uk/public_html/cache');

    ?>


    Hope you can help, thanks

    Paul From Wales....

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: phpBB forum link from site missing '/'

    Time for some debugging.

    But ... keep in mind that EVERYONE on your site will see this debug information. Therefore, be prepared to turn off debugging again very quickly.... that is, right away after you get a chance to view the output.

    1. Open your site in a browser. It displays normal. Leave the window open.

    2. Edit the file to enable debugging:
    in your /includes/classes/class.phpBB.php
    around line 23 you have:
    PHP Code:
        function phpBB() {
          
    $this->debug=false;
          
    $this->phpBB = Array(); 
    that second line has debug mode set to false.

    Change it to true


    3. Upload the change to your site.

    4. Refresh the browser. You'll see 50+ lines of extra information at the top of the page.
    Just leave that screen alone to look at later.

    5. Go back to step #2 and change the debug setting back to false.
    6. Re-upload the file to your site.

    7. Copy/paste the debug code from the top of the open browser here for review. You should blank-out your passwords etc for security.
    I'm interested in all the information, however, will be paying attention mostly to these:
    - script-filename
    - docroot
    - phpself
    - URL

    8. Double-check your site to be sure the debug code isn't showing.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2006
    Posts
    102
    Plugin Contributions
    0

    Default Re: phpBB forum link from site missing '/'

    Hi Doc, thanks for reply.

    I did as you said and here is what came up:

    dir=/home/sites/edenspirit.co.uk/public_html/forum/
    files_installed = true
    phpbb_path=/home/sites/edenspirit.co.uk/public_html/forum/

    CONFIG.PHP-->
    CONFIG.PHP-->$dbms = 'mysql';
    CONFIG.PHP-->$dbhost = 'xxxxxxxxxx';
    CONFIG.PHP-->$dbname = 'xxxxxxxxxx';
    CONFIG.PHP-->$dbuser = ‘'xxxxxxxxxx';
    CONFIG.PHP-->$table_prefix = 'phpbb_';
    CONFIG.PHP-->define('PHPBB_INSTALLED', true);
    CONSTANTS.PHP-->define('DEBUG', 1); // Debugging off
    CONSTANTS.PHP-->define('DELETED', -1);
    CONSTANTS.PHP-->define('ANONYMOUS', -1);
    CONSTANTS.PHP-->define('USER', 0);
    CONSTANTS.PHP-->define('ADMIN', 1);
    CONSTANTS.PHP-->define('MOD', 2);
    CONSTANTS.PHP-->define('USER_ACTIVATION_NONE', 0);
    CONSTANTS.PHP-->define('USER_ACTIVATION_SELF', 1);
    CONSTANTS.PHP-->define('USER_ACTIVATION_ADMIN', 2);
    CONSTANTS.PHP-->define('USER_AVATAR_NONE', 0);
    CONSTANTS.PHP-->define('USER_AVATAR_UPLOAD', 1);
    CONSTANTS.PHP-->define('USER_AVATAR_REMOTE', 2);
    CONSTANTS.PHP-->define('USER_AVATAR_GALLERY', 3);
    CONSTANTS.PHP-->define('GROUP_OPEN', 0);
    CONSTANTS.PHP-->define('GROUP_CLOSED', 1);
    CONSTANTS.PHP-->define('GROUP_HIDDEN', 2);
    CONSTANTS.PHP-->define('FORUM_UNLOCKED', 0);
    CONSTANTS.PHP-->define('FORUM_LOCKED', 1);
    CONSTANTS.PHP-->define('TOPIC_UNLOCKED', 0);
    CONSTANTS.PHP-->define('TOPIC_LOCKED', 1);
    CONSTANTS.PHP-->define('TOPIC_MOVED', 2);
    CONSTANTS.PHP-->define('TOPIC_WATCH_NOTIFIED', 1);
    CONSTANTS.PHP-->define('TOPIC_WATCH_UN_NOTIFIED', 0);
    CONSTANTS.PHP-->define('POST_NORMAL', 0);
    CONSTANTS.PHP-->define('POST_STICKY', 1);
    CONSTANTS.PHP-->define('POST_ANNOUNCE', 2);
    CONSTANTS.PHP-->define('POST_GLOBAL_ANNOUNCE', 3);
    CONSTANTS.PHP-->define('BEGIN_TRANSACTION', 1);
    CONSTANTS.PHP-->define('END_TRANSACTION', 2);
    CONSTANTS.PHP-->define('GENERAL_MESSAGE', 200);
    CONSTANTS.PHP-->define('GENERAL_ERROR', 202);
    CONSTANTS.PHP-->define('CRITICAL_MESSAGE', 203);
    CONSTANTS.PHP-->define('CRITICAL_ERROR', 204);
    CONSTANTS.PHP-->define('PRIVMSGS_READ_MAIL', 0);
    CONSTANTS.PHP-->define('PRIVMSGS_NEW_MAIL', 1);
    CONSTANTS.PHP-->define('PRIVMSGS_SENT_MAIL', 2);
    CONSTANTS.PHP-->define('PRIVMSGS_SAVED_IN_MAIL', 3);
    CONSTANTS.PHP-->define('PRIVMSGS_SAVED_OUT_MAIL', 4);
    CONSTANTS.PHP-->define('PRIVMSGS_UNREAD_MAIL', 5);
    CONSTANTS.PHP-->define('POST_TOPIC_URL', 't');
    CONSTANTS.PHP-->define('POST_CAT_URL', 'c');
    CONSTANTS.PHP-->define('POST_FORUM_URL', 'f');
    CONSTANTS.PHP-->define('POST_USERS_URL', 'u');
    CONSTANTS.PHP-->define('POST_POST_URL', 'p');
    CONSTANTS.PHP-->define('POST_GROUPS_URL', 'g');
    CONSTANTS.PHP-->define('SESSION_METHOD_COOKIE', 100);
    CONSTANTS.PHP-->define('SESSION_METHOD_GET', 101);
    CONSTANTS.PHP-->define('PAGE_INDEX', 0);
    CONSTANTS.PHP-->define('PAGE_LOGIN', -1);
    CONSTANTS.PHP-->define('PAGE_SEARCH', -2);
    CONSTANTS.PHP-->define('PAGE_REGISTER', -3);
    CONSTANTS.PHP-->define('PAGE_PROFILE', -4);
    CONSTANTS.PHP-->define('PAGE_VIEWONLINE', -6);
    CONSTANTS.PHP-->define('PAGE_VIEWMEMBERS', -7);
    CONSTANTS.PHP-->define('PAGE_FAQ', -8);
    CONSTANTS.PHP-->define('PAGE_POSTING', -9);
    CONSTANTS.PHP-->define('PAGE_PRIVMSGS', -10);
    CONSTANTS.PHP-->define('PAGE_GROUPCP', -11);
    CONSTANTS.PHP-->define('PAGE_TOPIC_OFFSET', 5000);
    CONSTANTS.PHP-->define('AUTH_LIST_ALL', 0);
    CONSTANTS.PHP-->define('AUTH_ALL', 0);
    CONSTANTS.PHP-->define('AUTH_REG', 1);
    CONSTANTS.PHP-->define('AUTH_ACL', 2);
    CONSTANTS.PHP-->define('AUTH_MOD', 3);
    CONSTANTS.PHP-->define('AUTH_ADMIN', 5);
    CONSTANTS.PHP-->define('AUTH_VIEW', 1);
    CONSTANTS.PHP-->define('AUTH_READ', 2);
    CONSTANTS.PHP-->define('AUTH_POST', 3);
    CONSTANTS.PHP-->define('AUTH_REPLY', 4);
    CONSTANTS.PHP-->define('AUTH_EDIT', 5);
    CONSTANTS.PHP-->define('AUTH_DELETE', 6);
    CONSTANTS.PHP-->define('AUTH_ANNOUNCE', 7);
    CONSTANTS.PHP-->define('AUTH_STICKY', 8);
    CONSTANTS.PHP-->define('AUTH_POLLCREATE', 9);
    CONSTANTS.PHP-->define('AUTH_VOTE', 10);
    CONSTANTS.PHP-->define('AUTH_ATTACH', 11);
    CONSTANTS.PHP-->define('CONFIRM_TABLE', $table_prefix.'confirm');
    CONSTANTS.PHP-->define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
    CONSTANTS.PHP-->define('BANLIST_TABLE', $table_prefix.'banlist');
    CONSTANTS.PHP-->define('CATEGORIES_TABLE', $table_prefix.'categories');
    CONSTANTS.PHP-->define('CONFIG_TABLE', $table_prefix.'config');
    CONSTANTS.PHP-->define('DISALLOW_TABLE', $table_prefix.'disallow');
    CONSTANTS.PHP-->define('FORUMS_TABLE', $table_prefix.'forums');
    CONSTANTS.PHP-->define('GROUPS_TABLE', $table_prefix.'groups');
    CONSTANTS.PHP-->define('POSTS_TABLE', $table_prefix.'posts');
    CONSTANTS.PHP-->define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
    CONSTANTS.PHP-->define('PRIVMSGS_TABLE', $table_prefix.'privmsgs');
    CONSTANTS.PHP-->define('PRIVMSGS_TEXT_TABLE', $table_prefix.'privmsgs_text');
    CONSTANTS.PHP-->define('PRIVMSGS_IGNORE_TABLE', $table_prefix.'privmsgs_ignore');
    CONSTANTS.PHP-->define('PRUNE_TABLE', $table_prefix.'forum_prune');
    CONSTANTS.PHP-->define('RANKS_TABLE', $table_prefix.'ranks');
    CONSTANTS.PHP-->define('SEARCH_TABLE', $table_prefix.'search_results');
    CONSTANTS.PHP-->define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
    CONSTANTS.PHP-->define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
    CONSTANTS.PHP-->define('SESSIONS_TABLE', $table_prefix.'sessions');
    CONSTANTS.PHP-->define('SESSIONS_KEYS_TABLE', $table_prefix.'sessions_keys');
    CONSTANTS.PHP-->define('SMILIES_TABLE', $table_prefix.'smilies');
    CONSTANTS.PHP-->define('THEMES_TABLE', $table_prefix.'themes');
    CONSTANTS.PHP-->define('THEMES_NAME_TABLE', $table_prefix.'themes_name');
    CONSTANTS.PHP-->define('TOPICS_TABLE', $table_prefix.'topics');
    CONSTANTS.PHP-->define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch');
    CONSTANTS.PHP-->define('USER_GROUP_TABLE', $table_prefix.'user_group');
    CONSTANTS.PHP-->define('USERS_TABLE', $table_prefix.'users');
    CONSTANTS.PHP-->define('WORDS_TABLE', $table_prefix.'words');
    CONSTANTS.PHP-->define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
    CONSTANTS.PHP-->define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
    CONSTANTS.PHP-->define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
    prefix=phpbb_
    dbname=xxxxxxxxxxx
    dbuser=xxxxxxxxxxxxxx
    dbhost=xxxxxxxxxxxx
    dbpasswd=xxxxxxxxx
    users_table=phpbb_users
    user_group_table=phpbb_user_group
    groups_table=phpbb_groups
    config_table=phpbb_config
    db_installed -- in separate database = 1
    script-filename=/home/sites/edenspirit.co.uk/public_html/index.php
    link_enabled_admin_status=true
    ok, now let's check relative paths
    docroot=/home/sites/edenspirit.co.uk/public_html/
    phpself=/index.php
    URL=forum/

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/sites/edenspirit.co.uk/public_html/includes/classes/class.phpBB.php:54) in /home/sites/edenspirit.co.uk/public_html/includes/functions/sessions.php on line 100

    Warning: Cannot modify header information - headers already sent by (output started at /home/sites/edenspirit.co.uk/public_html/includes/classes/class.phpBB.php:54) in /home/sites/edenspirit.co.uk/public_html/includes/init_includes/init_templates.php on line 78


    Hope this helps

    Paul

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: phpBB forum link from site missing '/'

    /includes/modules/sideboxes/YOURTEMPLATE/information.php
    line 29 says:
    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', '', '', true, false) . '" target="_blank">' . BOX_BBINDEX . '</a>';
    change it to say:
    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', true, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
    pay careful attention to the exact changes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Aug 2006
    Posts
    102
    Plugin Contributions
    0

    Default Re: phpBB forum link from site missing '/'

    Wow.. Doc you the man. Job done. You certainly know your stuff.

    Thanks for your help

    One more thing while i have your attension, when i start a category it asks me for text and an image. this appears when you view it BUT when i add a product the text dis-appears. Can I have it so text is there with products underneath? Sorry if this a simple problem, dont worry i got plenty more where this came from..

    Cheers

    Paul

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: phpBB forum link from site missing '/'

    Quote Originally Posted by paulFromWales
    when i start a category it asks me for text and an image. this appears when you view it BUT when i add a product the text dis-appears. Can I have it so text is there with products underneath? Sorry if this a simple problem, dont worry i got plenty more where this came from..
    I would suggest that you start a new topic for this, under the "Setting up Categories and Products" area, as it's completely unrelated to the current topic of discussion.
    Keeping things related to individual topics makes it easier for people to find specific answers in the future.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. My site's 'forum' link is going to an incorrect link
    By tommydamani in forum General Questions
    Replies: 17
    Last Post: 8 Aug 2010, 12:27 PM
  2. how do i get rid of forum link and forum nickname box in login
    By paulFromWales in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Sep 2007, 05:09 PM
  3. PHPBB Forum
    By Darkwander in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 2 Jun 2006, 03:55 PM

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