68 Classifieds on localhost

Discussion in 'Installation Problems' started by Yasser, Dec 10, 2009.

  1. Yasser Customer

    hi guys,,,

    i have installed 68class on my localhost and all ok.. just having problem with the admin area. i get the admin login page but after logging in i get blank page..

    any idea?

    thanks
  2. seymourjames All Hands On Deck

  3. Lhotch curmudgeon

    What version are you installing?
  4. Yasser Customer

    yes i have deleted the setup directory..


    i am using 4.1.6
  5. Lhotch curmudgeon

    what version of php?

    what operating system?

    does the front end display and can you login there?

    Does your "localhost" meet all the system requirements to run 68C?
  6. Yasser Customer

    I am running wamp with:
    Apache 2.2.11
    php 5.3
    mysql 5.1.36

    on windows VISTA SP2 .

    yes i get the login page .. but after logging in.. i get black white page.. (index.php)

    the user area all fine.. and its working perfectly.. part from the admin section.

    i dont know what i am missing.. is there any settings for the php.ini?


    thanks..
  7. Lhotch curmudgeon

    Id check the server logs and see if it logged any errors.
  8. seymourjames All Hands On Deck

  9. Yasser Customer

    i have checked the log and its quite long list.. just maybe you would like to see what errors i get :

    ------------------------------------------------------------------
    referer: http://localhost/BD/administration/login.php
    [Thu Dec 10 18:02:34 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 45, referer: http://localhost/BD/administration/login.php
    [Thu Dec 10 18:02:34 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 50, referer: http://localhost/BD/administration/login.php
    [Thu Dec 10 18:02:34 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 56, referer: http://localhost/BD/administration/login.php
    [Thu Dec 10 18:02:34 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 63, referer: http://localhost/BD/administration/login.php
    [Thu Dec 10 18:02:34 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 71, referer: http://localhost/BD/administration/login.php
    [Thu Dec 10 18:02:34 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 129, referer: http://localhost/BD/administration/login.php
    [Thu Dec 10 18:02:40 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 41, referer: http://localhost/BD/administration/login.php?js=true&goto=
    [Thu Dec 10 18:02:40 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 45, referer: http://localhost/BD/administration/login.php?js=true&goto=
    [Thu Dec 10 18:02:40 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 50, referer: http://localhost/BD/administration/login.php?js=true&goto=
    [Thu Dec 10 18:02:40 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 56, referer: http://localhost/BD/administration/login.php?js=true&goto=
    [Thu Dec 10 18:02:40 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 63, referer: http://localhost/BD/administration/login.php?js=true&goto=
    [Thu Dec 10 18:02:40 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 71, referer: http://localhost/BD/administration/login.php?js=true&goto=
    [Thu Dec 10 18:02:40 2009] [error] [client 127.0.0.1] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\\wamp\\www\\BD\\includes\\classes\\kernel\\Library.php on line 129, referer: http://localhost/BD/administration/login.php?js=true&goto=
    -------------------------------------------------------

    sorry its long one.. but all are from and within this file. / kernel/Library.php
  10. Yasser Customer

    seymourjames..

    yes i have tired switching magic_quotes_runtime to true / false..

    restarted my server..

    same result.
  11. Lhotch curmudgeon

  12. seymourjames All Hands On Deck

    Yer that is where I saw the php advice. Eric puts this in as well Look for $db = &new. Remove the ampersand
  13. Lhotch curmudgeon

    its not just that reference, but ALL references in the code for all files will likely need to be changed.

    here is a list from a quick search...


    /includes/classes/kernel/Users.php (134) $this->_class_tpl = & $class_tpl;
    /includes/classes/kernel/Library.php (41) $lib[$className] = & new $className();
    /includes/classes/kernel/Library.php (45) $lib[$className] = & new $className($param);
    /includes/classes/kernel/Library.php (50) $lib[$className] = & new $className($param, $param2);
    /includes/classes/kernel/Library.php (56) $lib[$className] = & new $className($param, $param2, $param3);
    /includes/classes/kernel/Library.php (63) $lib[$className] = & new $className($param, $param2, $param3, $param4);
    /includes/classes/kernel/Library.php (71) $lib[$className] = & new $className($param, $param2, $param3, $param4, $param5);
    /includes/classes/kernel/Library.php (129) $db[0] = & new MySQL($host, $user, $pass, $dbname);


    You could make a backup of those two files and then edit them removing the ampersand in the above lines.
  14. Yasser Customer

    hey guys... thanks for all your help..

    The reason i am using php5.X , it because i can't use php 4.x on my localhost..
    Its compatibility issue with the Apache verions. if i use Apache 1.3.41 with php4.4.9 i get the following error :
    ------------------------
    Server Error
    The following error occurred:

    Code:
     The server response could not be read because of an error. Contact your system administrator.
    Please contact the administrator. 
    ----------------------
    so i didnt want to waste my time with this. i did my search over the net and nothing was helpful.
    do you think guys its something to do with the ioncube???
    do i have to installed that in my localhost too? if yes, where? php>ext?
    thanks again..
  15. Lhotch curmudgeon

    its not 5.X its specifically php 5.3 and higher that cause the reference problem.
  16. Yasser Customer

    i am running php 5.2.9 . will that still the problem? cuz i have tried php 5.1.6 and the wamp server with apache gets crazy with older version.

    it might be my VISTA config.. but all smooth when i run apache 2.2.11 and php 5.2.9 ( WHICH I DONT WANT THOSE VERSION as i am trying to get php4.4.9 with apache 1.3.41 as my real server config. ) .


    Thanks again for your help.
  17. bowers01 Genius At Work

    wamp works fine on 5.2.9 but it didnt on 5.3
    You have to find a older version of wamp now too, from meory it was 2.0h give it a go on there and if that still produces errors its not the localhost server.
    Nick
  18. Yasser Customer

    Fixed

    Ok its solved...

    as i said before.. it was the inocube settings..

    just wanted to share this with all...


    thanks for all replies and help.


  19. northwoodsit Customer

    what settings exactly? Cause I have the same issue on localhost
  20. nakedegg Customer

    Hi,

    Using the latest version of 68C (Developer 4.2.1), I am experiencing the same problem of using 'localhost', where the user interface works quite fine, but am greeted by a blank page when accessing the administration area. With the site loaded to the hosted position and using the supplied license key, the admin area works quite fine...but I wish to develop the site locally before uploading to its hosted position.

    Local Config
    =========
    Using XAMPP for Windows 1.7.3
    PHP: 5.3.1
    Apache: 2.2.14
    MySQL: 5.1.41

    Hosted Config
    ===========
    PHP: 5.2.14
    Apache: 2.2.17
    MySQL: 5.0.91

    I have deleted the 'setup' directory, prior to logging into the admin area.
    I have deleted the ampersand in the $db = &new, so that it reads $db = new
    (From Lhotch's response, do I need to delete the ampersands globally?)
    The licence key is 'localhost' (verified in Connections/classified.php)
    Are there STILL issues with 68C working with PHP 5.3.x?

    What else do I need to check...or provide?

    Any and all assistance would be greatly appreciated...
    Thanks.

Share This Page