Cosmic CMS web.config

Ekalus

New Member
Mar 27, 2020
29
4
Hi, I am trying to get Cosmic working again. I got a new VPS, followed the tutorial and installed everything.

I get this error in IIS:

When I remove a line from the web.config (<action type="Rewrite" url="/Cosmic/public/{R:1}" />) I get this:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="habbo-imaging" stopProcessing="true">
<match url="^habbo-imaging/avatarimage$" ignoreCase="false" />
<action type="Rewrite" url="habbo-imaging/avatarimage.php" appendQueryString="true" />
</rule>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" pattern="Cosmic/public/" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="/Cosmic/public/{R:1}" />
</rule>
</rules>
</rewrite>
<staticContent>
<mimeMap fileExtension="." mimeType="text/xml" />
</staticContent>
</system.webServer>
</configuration>

Hope someone can help me!
 

Ekalus

New Member
Mar 27, 2020
29
4
Have you tried turning on error reporting in IIS PHP manager ?
Turned it on. Is this the log? Can't really make sense out of it tho.

thrown in C:\inetpub\wwwroot\Cosmic\public\index.php on line 9
[12-May-2020 18:58:45 Asia/Kuwait] PHP Warning: include_once(C:\inetpub\wwwroot\Cosmic\public/../vendor/autoload.php): failed to open stream: No such file or directory in C:\inetpub\wwwroot\Cosmic\public\index.php on line 7
[12-May-2020 18:58:45 Asia/Kuwait] PHP Warning: include_once(): Failed opening 'C:\inetpub\wwwroot\Cosmic\public/../vendor/autoload.php' for inclusion (include_path='.;C:\php\pear') in C:\inetpub\wwwroot\Cosmic\public\index.php on line 7
[12-May-2020 18:58:45 Asia/Kuwait] PHP Fatal error: Uncaught Error: Class 'App\Config' not found in C:\inetpub\wwwroot\Cosmic\public\index.php:9
Stack trace:
#0 {main}
thrown in C:\inetpub\wwwroot\Cosmic\public\index.php on line 9
[12-May-2020 19:22:19 Asia/Kuwait] PHP Fatal error: Uncaught Error: Class 'QueryBuilder' not found in C:\inetpub\wwwroot\Cosmic\App\Models\Community.php:52
Stack trace:
#0 C:\inetpub\wwwroot\Cosmic\App\Controllers\Community\Articles.php(93): App\Models\Community::getArticleById()
#1 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\Route\Route.php(124): App\Controllers\Community\Articles->index()
#2 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\Router.php(397): Pecee\SimpleRouter\Route\Route->renderRoute()
#3 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\Router.php(331): Pecee\SimpleRouter\Router->routeRequest()
#4 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\SimpleRouter.php(63): Pecee\SimpleRouter\Router->start()
#5 C:\inetpub\wwwroot\Cosmic\Core\Routes.php(193): Pecee\SimpleRouter\SimpleRouter::start()
#6 C:\inetpub\wwwroot\Cosmic\public\index.php(29): Core\Routes::init()
#7 {main}
thrown in C:\inetpub\wwwroot\Cosmic\App\Models\Community.php on line 52
[12-May-2020 19:30:27 Asia/Kuwait] PHP Fatal error: Uncaught Error: Class 'QueryBuilder' not found in C:\inetpub\wwwroot\Cosmic\App\Models\Player.php:29
Stack trace:
#0 C:\inetpub\wwwroot\Cosmic\App\Controllers\Home\Profile.php(33): App\Models\Player::getDataByUsername()
#1 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\Route\Route.php(124): App\Controllers\Home\Profile->profile()
#2 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\Router.php(397): Pecee\SimpleRouter\Route\Route->renderRoute()
#3 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\Router.php(331): Pecee\SimpleRouter\Router->routeRequest()
#4 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\SimpleRouter.php(63): Pecee\SimpleRouter\Router->start()
#5 C:\inetpub\wwwroot\Cosmic\Core\Routes.php(193): Pecee\SimpleRouter\SimpleRouter::start()
#6 C:\inetpub\wwwroot\Cosmic\public\index.php(29): Core\Routes::init()
#7 {main}
thrown in C:\inetpub\wwwroot\Cosmic\App\Models\Player.php on line 29
[12-May-2020 19:41:43 Asia/Kuwait] PHP Fatal error: Uncaught Error: Class 'QueryBuilder' not found in C:\inetpub\wwwroot\Cosmic\App\Models\Community.php:46
Stack trace:
#0 C:\inetpub\wwwroot\Cosmic\App\Controllers\Home\Index.php(21): App\Models\Community::getNews()
#1 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\Route\Route.php(124): App\Controllers\Home\Index->index()
#2 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\Router.php(397): Pecee\SimpleRouter\Route\Route->renderRoute()
#3 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\Router.php(331): Pecee\SimpleRouter\Router->routeRequest()
#4 C:\inetpub\wwwroot\Cosmic\vendor\pecee\simple-router\src\Pecee\SimpleRouter\SimpleRouter.php(63): Pecee\SimpleRouter\Router->start()
#5 C:\inetpub\wwwroot\Cosmic\Core\Routes.php(193): Pecee\SimpleRouter\SimpleRouter::start()
#6 C:\inetpub\wwwroot\Cosmic\public\index.php(29): Core\Routes::init()
#7 {main}
thrown in C:\inetpub\wwwroot\Cosmic\App\Models\Community.php on line 46
 

Users who are viewing this thread

Top