Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Re-installation on WAMP - Unknown class passed as parameter

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2378 Views
  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re-installation on WAMP - Unknown class passed as parameter Link to this post

    Hi all, this is a weird one and can only assume it has something to do with SS cache.

    I had a working copy of 2.4a on WAMP and it was working fine. I decided to go back to 2.3.3 for this sandbox, so cleared the webroot, emptied the DB and copied a fresh set of files to the webroot.

    First, the installation redirect went to http://silverstripe.localhost\/install.php which obviously caused an error. I delete the backslash and all is as normal.

    I go to the next installation step, and at the point where it is "building database schema" an error is thrown:

    The title of the browser also says "PHP 5 is required".

    I have installed many times on this exact WAMP installation, and it is running 5.2.5.

    Any ideas? And just where are the silverstripe-cache files on a WAMP installation anyway?
    Aaron

    Attached Files
  • mathiasmex
    Avatar
    Community Member
    28 Posts

    Re: Re-installation on WAMP - Unknown class passed as parameter Link to this post

    Hi,

    would like to join this, although my installation is on MAMP.
    Noticed that installation failed with same error, using version 2.3.2, 2.3.3 or 2.3.4 (tonight). Did some testing and found out (and thought, maybe it has to do something with it):

    Installation failed on Virtual host www.anwaltsinstitut.msh. Installation passed without error by installing these three versions without putting any virtual host and using only the normal folder name after extrating the files from .tar (e.g. Silverstripe-v2.3.3). Tried to rename the folder to named virtual host without success. And then i tried - tested already in version 2.3.2 and 2.3.4 right now - renaming the folder Silverstripe-v2.3.4, which with URL localhost/Silverstripe-v2.3.4 worked, but used new virtual host www.anwalt.msh. This ist much shorter, so maybe it has to do with friendly URL thing and throws only the "unknown class passed as parameter" error, when URL is to long ?

    Just a guess - have no clue....

    mathiasmex

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Re-installation on WAMP - Unknown class passed as parameter Link to this post

    Hi mate,

    The only way I got around this is by installing in a different physical directory, with a new database, and a new URL.

    I still suspect this is a cache issue. But I cannot for the life of me find where WAMP stores silverstripe-cache files on Windows.

    Aaron

  • Krille Brocket
    Avatar
    Community Member
    10 Posts

    Re: Re-installation on WAMP - Unknown class passed as parameter Link to this post

    I'm running XAMPP and had the same problem.

    To get it working i deleted the silverstripe-cache & silverstripe-cacheC*** folders under C:\Documents And Settings\[your user name]\Local Settings\Temp folder

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Re-installation on WAMP - Unknown class passed as parameter Link to this post

    FYI, I fixed a bug with the cache/temp dir on Windows here: http://open.silverstripe.org/changeset/94134/modules

    It'll appear in the next 2.4 release - if you want, you can switch your cms and sapphire to branches/2.4 from SVN, which is where the 2.4 development is happening.

    Cheers,
    Sean

  • Distinct
    Avatar
    Community Member
    10 Posts

    Re: Re-installation on WAMP - Unknown class passed as parameter Link to this post

    FYI this is not just a windows problem, the exact same thing happened to me using ubuntu. Following advice in this thread I cleared out the silverstripe-cache folders in my /tmp directory, seems to be fine now.

    2378 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.