Menu

links not displayed

Help
bdvllrd
2013-07-27
2013-08-21
  • bdvllrd

    bdvllrd - 2013-07-27

    SemanticScuttle v0.98.5 used

    From "http://www.mylinks.mydomain.fr/populartags.php" page When I select a tag from the tag cloud, I don't get any links!

    The http request "http://www.mylinks.mydomain.fr/tags.php/selectedtag" don't return any results.

    My folder organisation is the following:

    www/
    mydomain
    mylinks <- semantic scuttle
    data
    src
    ...
    www

    I have set the root variable as null:

    $root = null;

    What I am doing wrong.
    Thanks for your help

     
  • Christian Weiske

    Does /tags.php give results?

     
    • bdvllrd

      bdvllrd - 2013-08-07

      No. No results. I stay on the same page.

       
  • Christian Weiske

    What means "no results"? A semanticscuttle page with a "no results" message? Or an error page from your web server?

     
  • bdvllrd

    bdvllrd - 2013-08-12

    From the page http://www.mylinks.wangba.fr/populartags.php select a tag and see the results. For instance select "vélo" (bike). You stay on the populartag.php page.

    the domain http://www.mylinks.wangba.fr is defined as www.wangba.fr/mylinks folder with url rewriting.

     
    • Christian Weiske

      Hello bruno,

      From the page http://www.mylinks.wangba.fr/populartags.php select a
      tag and see the results. For instance select "vélo" (bike). You stay
      on the populartag.php page.

      the domain http://www.mylinks.wangba.fr is defined as
      www.wangba.fr/mylinks folder with url rewriting.

      Ok, it seems that semanticscuttle does not get the URL parameters
      (everything after the "....php/").

      Are you running PHP on apache? Or is that an IIS? If it is an IIS,
      please put a file "phpinfo.php" online with the contents

      and tell me the URL.

      --
      Regards/Mit freundlichen Grüßen
      Christian Weiske

      -=≡ Geeking around in the name of science since 1982 ≡=-

       
  • bdvllrd

    bdvllrd - 2013-08-13

    Thanks for your support.

    You can run http://www.mylinks.wangba.fr/phpinfo.php

    hereafter is the content of the url rewriting (.htaccess from the www folder)

    <IfModule mod_rewrite.c="">
    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteRule ^([^/.]+)/?(.*)$ /$1.php/$2 [QSA,L]
    RewriteRule ^api/([a-z]+)/([a-z]+) /api/$1_$2.php
    </IfModule>

     

    Last edit: bdvllrd 2013-08-13
    • Christian Weiske

      Hello bruno,

      You can run http://www.mylinks.wangba.fr/phpinfo.php

      The problem is that PATH_INFO is not filled as it is in Apache.
      There is ORIG_PATH_INFO, though. I need to add this to semanticscuttle.

      In the meantime, add the following at the end of
      src/SemanticScuttle/constants.php:

      if (!isset($_SERVER['PATH_INFO'])) {
      $_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];
      }

      --
      Regards/Mit freundlichen Grüßen
      Christian Weiske

      -= Geeking around in the name of science since 1982 =-

       
  • bdvllrd

    bdvllrd - 2013-08-13

    I added the following lines at the end of src/SemanticScuttle/constants.php:

    if (!isset($_SERVER['PATH_INFO'])) {
    $_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];
    }
    $f=fopen('test.txt','a+');fwrite($f,"path_info=".$_SERVER['PATH_INFO']."\n\n");

    And after the displaying of the main page the text.txt file content is:

    path_info=/index.php

    path_info=/jsScuttle.php

    But now when I select popularTags I get "User with username populartags.php was not found"

    What I am doing wrong ?

     
    • Christian Weiske

      Hello bruno,

      But now when I select popularTags I get "User with username
      populartags.php was not found"

      What I am doing wrong ?

      Nothing :)

      http://www.mylinks.wangba.fr/populartags.php/ works (slash at the end).
      What also now works is

      http://www.mylinks.wangba.fr/bookmarks.php/brunaud
      and
      http://www.mylinks.wangba.fr/bookmarks.php/brunaud/association%20vélo
      - they did not work before.

      So we're on the right way.

      What apache version do you have? Which hosting provider? Don't say it's
      1&1 :)

      Please also create a file dummy.php with the following in it:

      With that, I'm able to adjust the SemanticScuttle code so your server
      is supported properly.

      --
      Regards/Mit freundlichen Grüßen
      Christian Weiske

      -=≡ Geeking around in the name of science since 1982 ≡=-

       
  • bdvllrd

    bdvllrd - 2013-08-13

    What apache version do you have? Which hosting provider?
    Don't say it's 1&1 :)

    Yes, it's 1&1 - mutualized server under linux (debian).
    How can I get the release of apache ?

    I have created a dummy.php file inside www. see http://www.mylinks.wangba.fr/dummy.php
    What should be the content ?

     
    • Christian Weiske

      Hello bruno,

      Yes, it's 1&1 - mutualized server under linux (debian).
      How can I get the release of apache ?
      No idea; I thought you knew/are admin.

      I have created a dummy.php file inside www. see
      http://www.mylinks.wangba.fr/dummy.php What should be the content ?

      --
      Regards/Mit freundlichen Grüßen
      Christian Weiske

      -=≡ Geeking around in the name of science since 1982 ≡=-

       
  • bdvllrd

    bdvllrd - 2013-08-18

    So how can i get a correct url ( http://www.mylinks.wangba.fr/populartags.php/ ) with a slash at end, to get the popular tags ?

    What is the next step to get a correct behaviour ?

    Thanks in advance for your answers

     
  • Christian Weiske

    Sorry, the forum software filtered out the code.

    Please write in dummy.php:

    <?php phpinfo(); ?>
    
     
  • bdvllrd

    bdvllrd - 2013-08-19

    Done. You can get the php info with http://www.mylinks.wangba.fr/dummy.php

    Thanks

     
  • Christian Weiske

    Could you please change that to

    <?php var_export($_SERVER); ?>
    

    ?

     
  • bdvllrd

    bdvllrd - 2013-08-20

    Done.

     
  • bdvllrd

    bdvllrd - 2013-08-21

    Yes it is working. Thanks a lot for your support. Seems to be the solution for the 1&1 shared servers.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.