eZ Community » Forums » Install & configuration » Windows / IIS: Can't Login to...
expandshrink

Windows / IIS: Can't Login to Platform UI

Windows / IIS: Can't Login to Platform UI

Wednesday 23 December 2015 11:24:48 am - 3 replies

Hi All,

I've managed to get eZ Platform 15.12 up and running on Windows/IIS using MySQL and PHP.

However, I can't login to the admin backend. There is a Javascript error in the console:

Uncaught TypeError: Cannot read property 'User' of null

It's within this code block:

/**
         * Parses an object (usually a response object from the JS REST client)
         *
         * @method parse
         * @param {Object} response an object with a `document` property holding
         * the struct to parse like the response object from the eZ JS REST
         * Client
         * @return {Object} attribute hash
         */
        parse: function (response) {
            var content = response.document,
                root = this.constructor.REST_STRUCT_ROOT;
            if ( root ) {
                Y.Array.each(root.split(REST_ROOT_LEVEL_SEP), function (val) {
                    content = content[val];
                });
            }
            return this._parseStruct(content, response.document);
        },

The "content" object (see above) seems to be null.

Does anyone know a solution to this? Has anyone ever used eZ 15.12 with IIS before?

Best,

Andreas

Thursday 07 January 2016 11:19:43 am

Note that I'm also getting a 404 on the following URI:

http://my-server.net/api/ezp/v2/user/sessions/td0fufnbdhed4r4fv79a9ke4s7/refresh

I assume that my Virtual Host is not configured correctly. Here's my web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                <add value="app.php" />
                <add value="index.php" />
                <add value="index.htm" />
                <add value="index.html" />
            </files>
        </defaultDocument>
        <rewrite>
            <rules>
                <clear />
                <rule name="var/storage" stopProcessing="true">
                    <match url="^var/([^/]+/)?storage/images(-versioned)?/.*" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="None" />
                </rule>
                <rule name="favicon" stopProcessing="true">
                    <match url="^favicon\.ico" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="None" />
                </rule>
                <rule name="robots" stopProcessing="true">
                    <match url="^robots\.txt" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="None" />
                </rule>
                <rule name="bundles" stopProcessing="true">
                    <match url="^bundles/" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="None" />
                </rule>
                <rule name="stylesheets" stopProcessing="true">
                    <match url="^(css|js|font)/.*\.(css|js|otf|eot|ttf|svg|woff)" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="None" />
                </rule>
                <rule name="debug" enabled="true" stopProcessing="true">
                    <match url="test.php" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="None" />
                </rule>
                <rule name="everything else" enabled="true" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="Rewrite" url="/app.php" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

Monday 23 January 2017 7:56:36 pm

Hi Andreas,

 

Excuse me but where did you fount the web.config file for ezpublish 5 full stack symfony?

I'm looking for this file but want find it.

Thank you.

Vincent

Modified on Monday 23 January 2017 8:38:24 pm by Vincent GUYARD

Tuesday 24 January 2017 11:05:33 am

Hi Vincent,

It's just not there, unfortunately. sad.gif Emoticon I had to create the file with a lot of guessing. For my file, just see above.

Please note that I did not complete the install on IIS/Windows. We switched back to LAMP.

Best,

Andreas

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from