Menu

Error after installing: redirects to /home

Main
simusch
2009-06-23
2012-12-13
  • simusch

    simusch - 2009-06-23

    Hi there

    i just found this great project!

    Installation worked perfect, but then:

    When i type in the URL to my site, after 3-5 seconds, the script redirects to a non-existant subfolder "/home?PHPSESSID=..."

    a message appears:
    "Sorry but the page you requested was not found on this server."

    sometimes there also appears the following notice:

    Notice: Only variable references should be returned by reference in /my_website_path/classes/system/Dir.class.php on line 116

    Can anybody help me with this?

    Simu

     
    • Cedric Francoys

      Cedric Francoys - 2009-06-25

      The CMS assumes that URL rewriting is enable in the apache config.
      However, you may try to remove the .htaccess at the root of your installation folder (www)

      To remove the notice warning, try to add this line at the top of the index.php file (just after the "<?php" line ):

      error_reporting(0);

      Regards,
      Cedric

       
  • michas100

    michas100 - 2011-03-25

    Hi everybody!,

    I have the same problem, this time I testing this project on Linux RetHat machine in subfolder, but I have the same problem as Subject of the post? Can anybody help and give the tip "step by step", I'll be grateful.
    I have a php 5 and mod_rewrite enable and I delete .htacces file.

     
  • Cedric Francoys

    Cedric Francoys - 2011-03-28

    Hi Michas,

    Try this :

    modify the classes/core/Site.class.php by commenting the line 663 like this
    //          $alias = $page->getPageAlias($lid);

    it should prevent any redirecting to friendly URL (i.e. /home instead of /index.php?pid=1)

    Cedric

     
  • michas100

    michas100 - 2011-03-29

    Hi thanks for reply, but now after your advice i have only blank page with this in URL:
    http://xxx.pl/test2/index.php?pid=1&lid=1&mode=view
    And apache logs are:

    pat/php_xslt.php on line 7
    [Tue Mar 29 15:26:26 2011] [error] [client 192.168.0.1] PHP Fatal error:  Class 'XsltProcessor' not found in /var/www/html/test2/includes/compat/php_xslt.php on line 7
    [Tue Mar 29 15:26:28 2011] [error] [client 192.168.0.1] PHP Fatal error:  Class 'XsltProcessor' not found in /var/www/html/test2/includes/compat/php_xslt.php on line 7
    [Tue Mar 29 15:26:33 2011] [error] [client 192.168.0.1] PHP Notice:  Only variable references should be returned by reference in /var/www/html/test2/classes/system/Dir.class.php on line 116
    [Tue Mar 29 15:26:33 2011] [error] [client 192.168.0.1] PHP Fatal error:  Class 'XsltProcessor' not found in /var/www/html/test2/includes/compat/php_xslt.php on line 7
    [Tue Mar 29 15:30:16 2011] [error] [client 192.168.0.1] PHP Fatal error:  Class 'XsltProcessor' not found in /var/www/html/test2/includes/compat/php_xslt.php on line 7
    

    Any IDEAS? I must add that for example Joomla works.

     
  • Cedric Francoys

    Cedric Francoys - 2011-03-30

    Hi,

    The URL seems to be OK.

    Apparently there is an error with the xslt processor (needed to convert xml to html).
    Check your php configuration and remember that :

    * for PHP 4
    PHP must have been compiled with the options '-enable-xslt', '-with-xslt-sablot'
    php-xslt extension must have been enabled :
         install the php4-xslt package
         install the php4-gd2 package

    * for PHP 5
    PHP must have been compiled with the options '-enable-xslt', '-with-dom',  '-with-dom-exslt', '-with-dom-xslt

    Regards,
    Cedric

     
  • michas100

    michas100 - 2011-03-31

    Yes You have right, so i must recompile the php 5 package, but I install it with 'yum' so it was an automatic install, can You tell mi a little tip.. sorry :-)

     
  • michas100

    michas100 - 2011-03-31

    Is it only way to uninstall php5 and compile it with source…?

     
  • Cedric Francoys

    Cedric Francoys - 2011-04-04

    Hi,

    Yes, I'm afraid you will have to uninstall and install again from sources.

    If it helps, this is how I did it :

    sources :
    http://museum.php.net/php5/php-5.3.0.tar.gz
    http://xmlsoft.org/sources/old/libxml2-2.6.11.tar.gz
    http://www.openssl.org/source/openssl-1.0.0a.tar.gz

    pre-command
    /etc/rc.d/init.d/httpd stop
    /etc/init.d/mysql stop

    openssl
    ./config -prefix=/usr/local
    make
    make install

    php 5.2.1
    ./configure -disable-pic -with-apache=../apache_1.3.34 -disable-rpath -enable-bcmath -enable-calendar -with-curl=/usr/local -enable-discard-path -enable-exif -enable-filepro -enable-ftp -enable-gd-native-tt -enable-inline-optimization -enable-libgcc -enable-magic-quotes -enable-sysvsem -enable-sysvshm -enable-trans-sid -enable-wddx -enable-xslt -with-dom -with-dom-exslt -with-dom-xslt -with-filepro -with-expat-dir=/usr/local -with-gd -with-gdbm -with-gettext -with-jpeg-dir=/usr -with-kerberos -with-mysql=/usr/local/mysql -with-png-dir=/usr/local -with-xml -with-zlib-dir=/usr/local -with-pdflib=/usr/local -with-regex=system -with-ttf -with-zip=/usr/local -with-zlib -with-iconv-dir=/usr/local -with-libxml-dir=/usr/local -with-freetype-dir=/usr/local

    php 5.3.0
    ./configure -with-apache=../apache_1.3.34 -disable-rpath -enable-bcmath -enable-calendar -with-curl=/usr/local -enable-exif -enable-ftp -enable-inline-optimization -enable-libgcc -enable-magic-quotes -enable-sysvsem -enable-sysvshm -enable-wddx -with-gd -with-gdbm -with-gettext -with-jpeg-dir=/usr -with-kerberos -with-mysql=/usr/local/mysql -with-png-dir=/usr/local -with-zlib-dir=/usr/local -with-regex=system -with-zlib -with-iconv-dir=/usr/local -with-libxml-dir=/usr/local -with-freetype-dir=/usr/local -with-xsl=/usr/local

    Notice: Following unknown configure options were used:

    -disable-pic
    -enable-discard-path
    -enable-filepro
    -enable-gd-native-tt
    -enable-trans-sid
    -enable-xslt
    -with-dom
    -with-dom-exslt
    -with-dom-xslt
    -with-filepro
    -with-expat-dir=/usr/local
    -with-xml
    -with-pdflib=/usr/local
    -with-ttf
    -with-zip=/usr/local

    make
    make install

    cp ./libs/libphp5.a ../apache_1.3.34/src/modules/php5/

    php.ini
    usr/local/lib/php.ini :
    session.save_path = /tmp

    apache
    ./configure -prefix=/usr/local/apache -activate-module=src/modules/php5/libphp5.a -enable-module=so -enable-module=rewrite

    make
    make install

    /etc/rc.d/init.d/httpd restart
    /etc/init.d/mysql start &

     
  • michas100

    michas100 - 2011-04-04

    Hi, yes that is the way, I must do it that way, but I have some services which depends on php5 that I have already installed e.g. squirellmail… with my own logo (this stuff)… I try to do it on the virtual machine UBUNTU (firstly). THANK YOU!. Regards. (thanks for sources, too)

     

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.