Results 1 to 15 of 15

Thread: HELP PLEASE: Website check

  1. #1
    User
    Join Date
    05-12-14.
    Posts
    72

    Ausrufezeichen HELP PLEASE: Website check

    could someone check a website for me please? It seems to not be showing for some reason and i can't figure out why.
    wwwdotclausmarkdotcom is the website
    I have installed some new extensions, but nothing amazing:
    keywords
    extendedSEO
    htaccess
    It was all working last Thursday, but now i just get blank pages, with no content in the markup.

    When i look in the log files im getting bunch of:
    No active page for page ID "index.php", host "saas00523.saas-secure.com" and languages "zh, en" (saas00523.saas-secure.com/index.php/index.php/67.html)

    Using ScreamingfrogSEO Spider, im getting a 500 error.




    Im guessing its an htaccess file problem or something. But i am really not sure.
    All i have in the htaccess rewrite is:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^clausmark.com
    RewriteRule (.*) http://www.clausmark.com/$1 [R=301,L]

    Heres the full htaccess file, if it helps:
    ### INSTALL SCRIPT START ###
    $GLOBALS['TL_CONFIG']['htaccess_default_charset'] = 'utf-8';
    $GLOBALS['TL_CONFIG']['htaccess_auth_enabled'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_etag_disable'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_expires_default'] = 31104000;
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_prepend_www'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_remove_www'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_dynamic_www'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_gzip'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_favicon'] = 1;
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_disable_multiview'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_disable_indexes'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_ie_x_ua_compatible'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_cross_domain_ajax'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_concatenation_include'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_ie_flicker_fix'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_mime_types'] = 'a:1:{i:0;a:3:{s:9:"extension";s:3:"htc";s:8:"mime type";s:16:"text/x-component";s:8:"encoding";s:0:"";}}';
    $GLOBALS['TL_CONFIG']['htaccess_deflate_files'] = 'a:3:{i:0;a:1:{s:8:"mimetype";s:8:"text/css";}i:1;a:1:{s:8:"mimetype";s:14:"application/js";}i:2;a:1:{s:8:"mimetype";s:15:"application/xml";}}';
    $GLOBALS['TL_CONFIG']['htaccess_expires'] = 'a:1:{i:0;a:3:{s:8:"mimetype";s:8:"text/css";s:4:"mode";s:1:"A";s:4:"time";s:8:"31104000"; }}';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_rules'] = 'RewriteEngine On\nRewriteCond %{HTTP_HOST} ^clausmark.com\nRewriteRule (.*) http://www.clausmark.com/$1 [R=301,L]';
    ### INSTALL SCRIPT STOP ###


    BUT, as my root directory on the web server is a subdirectory, im guessing this may be the problem.
    So the order on the web server i have is
    /
    httpdocs
    clausmark.com
    index.php

    Im guessing i have to provide a rewrite to direct to that subfolder, or? Can i just delete the .htaccess file for a new one to be written?


    Any suggestions would be very helpful, as i really need to solution to this, and i don't think ill figure it out by myself.

    Im on Contao version 2.11.11
    Last edited by markclaus; 06/02/2014 at 12:17.

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    What you have entitled above with "full htaccess file" should be the "system/config/localconfig.php" file. However, it looks as if this configuration file is uncomplete. There are missing all Contao standard settings (DB credentials etc.).

    Run the Contao install tool again and go through all installation steps.
    Contao Community Moderator
    → Support options

  3. #3
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    Is that something that the extension htaccesseditor has altered in the system/config/localconfig.php file?
    Is running the Contao install again the only/easiest option to fix this?

    As what i do not understand is, can't i just delete htaccesseditor extension or edit the htaccess file or something?
    Last edited by markclaus; 06/02/2014 at 16:02.

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Quote Originally Posted by markclaus View Post
    Is that something that the extension htaccesseditor has altered in the system/config/localconfig.php file?
    Yes, it seems so.

    Quote Originally Posted by markclaus View Post
    Is running the Contao install again the only/easiest option to fix this?
    Yes, definitely!

    Quote Originally Posted by markclaus View Post
    As what i do not understand is, can't i just delete htaccesseditor extension or edit the htaccess file or something?
    Try to delete the extension folder.
    Contao Community Moderator
    → Support options

  5. #5
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    Quote Originally Posted by xchs View Post
    Yes, it seems so.
    ----- ok thats good to know.


    Quote Originally Posted by xchs View Post
    Yes, definitely!
    ------ also to reinstall 2.11.11? I know that i should update to possibly the latest version, and now may be a good time to do this. I just want to know if its possible to reinstall version 2.11.11


    Quote Originally Posted by xchs View Post
    Try to delete the extension folder.
    ------ are you saying that deleting this extension folder from the server (i presume after deleting the htaccesseditor extension folder in the backend) could also possibly fix the problem without a reinstall??

    Sorry for the many questions......
    Last edited by markclaus; 06/02/2014 at 16:31.

  6. #6
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Quote Originally Posted by markclaus View Post
    ...without a reinstall
    You don't have to reinstall anything! Just remove the extension folder from the modules directory, run the Contao install tool and enter the credentials for the DB connection. Then, perform the database update within the install tool.

    That's it. Nothing more.
    Contao Community Moderator
    → Support options

  7. #7
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    Quote Originally Posted by xchs View Post
    You don't have to reinstall anything! Just remove the extension folder from the modules directory, run the Contao install tool and enter the credentials for the DB connection. Then perform the database update within the install tool. That's it. Nothing more.
    Ahhh. So performing this will not alter anything on the website itself? Im not going to lose content. its purely to correct the DB connection to/for the localconfig.php file?

  8. #8
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Quote Originally Posted by markclaus View Post
    So performing this will not alter anything on the website itself?
    No. Nothing. Running the install tool again will just restore the default configuration settings in your "localconfig.php":
    PHP Code:
    ### INSTALL SCRIPT START ###
    $GLOBALS['TL_CONFIG']['licenseAccepted'] = true;
    $GLOBALS['TL_CONFIG']['websitePath'] = '';
    $GLOBALS['TL_CONFIG']['installPassword'] = 'YOUR_INSTALL_TOOL_PASSWORD';
    $GLOBALS['TL_CONFIG']['encryptionKey'] = 'YOUR_ENCRYPTION_KEY';
    $GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQLi';
    $GLOBALS['TL_CONFIG']['dbHost'] = 'localhost';
    $GLOBALS['TL_CONFIG']['dbUser'] = 'YOUR_DB_USER_NAME';
    $GLOBALS['TL_CONFIG']['dbPass'] = 'YOUR_DB_PASSWORD';
    $GLOBALS['TL_CONFIG']['dbDatabase'] = 'YOUR_DATABASE_NAME';
    $GLOBALS['TL_CONFIG']['dbPconnect'] = false;
    $GLOBALS['TL_CONFIG']['dbCharset'] = 'UTF8';
    $GLOBALS['TL_CONFIG']['dbPort'] = 3306;

    ### INSTALL SCRIPT STOP ### 
    Quote Originally Posted by markclaus View Post
    its purely to correct the DB connection to/for the localconfig.php file?
    Yes, exactly!

    But beware to not import an SQL website template! This would overwrite your current website.
    Last edited by xchs; 06/02/2014 at 16:48.
    Contao Community Moderator
    → Support options

  9. #9
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    Quote Originally Posted by xchs View Post
    No. Nothing. Running the install tool again will just restore the default configuration settings in your "localconfig.php":
    PHP Code:
    ### INSTALL SCRIPT START ###
    $GLOBALS['TL_CONFIG']['licenseAccepted'] = true;
    $GLOBALS['TL_CONFIG']['websitePath'] = '';
    $GLOBALS['TL_CONFIG']['installPassword'] = 'YOUR_INSTALL_TOOL_PASSWORD';
    $GLOBALS['TL_CONFIG']['encryptionKey'] = 'YOUR_ENCRYPTION_KEY';
    $GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQLi';
    $GLOBALS['TL_CONFIG']['dbHost'] = 'localhost';
    $GLOBALS['TL_CONFIG']['dbUser'] = 'YOUR_DB_USER_NAME';
    $GLOBALS['TL_CONFIG']['dbPass'] = 'YOUR_DB_PASSWORD';
    $GLOBALS['TL_CONFIG']['dbDatabase'] = 'YOUR_DATABASE_NAME';
    $GLOBALS['TL_CONFIG']['dbPconnect'] = false;
    $GLOBALS['TL_CONFIG']['dbCharset'] = 'UTF8';
    $GLOBALS['TL_CONFIG']['dbPort'] = 3306;

    ### INSTALL SCRIPT STOP ### 

    Yes, exactly!

    But beware to not import an SQL website template! This would overwrite your current website.

    Thanks for the helping me to break this down. I guess i will find the install tool on the server somewhere?
    Many thanks again.

  10. #10
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Contao install tool: http://www.clausmark.com/contao/install.php

    Let me know if you need further assistance.
    Contao Community Moderator
    → Support options

  11. #11
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    Quote Originally Posted by xchs View Post
    Contao install tool: http://www.clausmark.com/contao/install.php

    Let me know if you need further assistance.
    Thanks very much for the help, it may end up being the case that i need your assistance, so your time is greatly appreciated in helping out.

    I'll have to get the DB information from someone in the meantime, as well as the install tool login password.

  12. #12
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Quote Originally Posted by markclaus View Post
    ...as well as the install tool login password.
    If there's no
    PHP Code:
    $GLOBALS['TL_CONFIG']['installPassword'] = 'YOUR_INSTALL_TOOL_PASSWORD'
    line in your "localconfig.php" you can assign a new password when running the install tool the frist time.

    So check first your "system/config/localconfig.php". Seems like
    PHP Code:
    ### INSTALL SCRIPT START ###
    $GLOBALS['TL_CONFIG']['htaccess_default_charset'] = 'utf-8';
    $GLOBALS['TL_CONFIG']['htaccess_auth_enabled'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_etag_disable'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_expires_default'] = 31104000;
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_prepend_www'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_remove_www'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_dynamic_www'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_gzip'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_favicon'] = 1;
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_disable_multiview'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_disable_indexes'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_ie_x_ua_compatible'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_cross_domain_ajax'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_concatenation_include'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_h5bp_ie_flicker_fix'] = '';
    $GLOBALS['TL_CONFIG']['htaccess_mime_types'] = 'a:1:{i:0;a:3:{s:9:"extension";s:3:"htc";s:8:"mime type";s:16:"text/x-component";s:8:"encoding";s:0:"";}}';
    $GLOBALS['TL_CONFIG']['htaccess_deflate_files'] = 'a:3:{i:0;a:1:{s:8:"mimetype";s:8:"text/css";}i:1;a:1:{s:8:"mimetype";s:14:"application/js";}i:2;a:1:{s:8:"mimetype";s:15:"application/xml";}}';
    $GLOBALS['TL_CONFIG']['htaccess_expires'] = 'a:1:{i:0;a:3:{s:8:"mimetype";s:8:"text/css";s:4:"mode";s:1:"A";s:4:"time";s:8:"31104000"; }}';
    $GLOBALS['TL_CONFIG']['htaccess_rewrite_rules'] = 'RewriteEngine On\nRewriteCond %{HTTP_HOST} ^clausmark.com\nRewriteRule (.*) http://www.clausmark.com/$1 [R=301,L]';
    ### INSTALL SCRIPT STOP ### 
    is not your full "localconfig.php"!?
    Contao Community Moderator
    → Support options

  13. #13
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Quote Originally Posted by markclaus View Post
    So the order on the web server i have is
    /httpdocs/clausmark.com/index.php

    Im guessing i have to provide a rewrite to direct to that subfolder, or? Can i just delete the .htaccess file for a new one to be written?
    Best way is to direct your domain or a subdomain to httpdocs/clausmark.com/ within your providers account setting panell. Then run install from that domain. test.clausmark.com/contao/install.php. Maybe meanwhile there's a path entry in system/config/pathconfig.php. If that causes errors you can delete this files it gets generated while running the install tool.

    Make sure that you use .htaccess.default from Contao 2.11.11 (2.11.17 after upgrading) by renaming it or better create a copy so you always can compare them easily.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  14. #14
    User
    Join Date
    05-12-14.
    Posts
    72

    Default

    Very strange, but the moo_analytics.tpl file had something to do with this. Took the revised code from http://de.contaowiki.org/Google_Analytics and now the website is back up, but i need to look at this closer, as i don't understand what effect this moo_analytics.tpl file had on making the website disappear.

    Some advice here would be helpful.

    Here is how i have Google Analytics set up:

    I have the Universal Google Analytics snippet placed in the additional heads tags in Themes.
    I also have the googleanalytics extension installed.
    Do i therefore need the moo_analytics.tpl in the templates folder? Or can i now remove that and leave the Universal Google Analytics code in the header? My thinking is I don't need all of these Google Analytics, and that by having these three types has resulted in something strange happening that i do not fully understand yet. I may not have understood analytics correctly when i set it up initially, resulting in this error happening, but now i am unsure what it is i CAN remove and what i SHOULDNT remove.

    Thanks in advance.

  15. #15
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    Quote Originally Posted by markclaus View Post
    Very strange, but the moo_analytics.tpl file had something to do with this. Took the revised code from http://de.contaowiki.org/Google_Analytics and now the website is back up, but i need to look at this closer, as i don't understand what effect this moo_analytics.tpl file had on making the website disappear.
    There are no *.tpl templates in Contao anymore. So rename your template either to "moo_analytics.xhtml" or to "moo_analytics.html5".

    Quote Originally Posted by markclaus View Post
    Do i therefore need the moo_analytics.tpl in the templates folder? Or can i now remove that and leave the Universal Google Analytics code in the header?
    Yes, remove the template from the templates folder. Since you load the Universal Google Analytics snippet in the page layout, you don't need neither the Contao GA template nor the third-party extension.
    Contao Community Moderator
    → Support options

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
  •