Admin pages doesn´t...
 
Notifications
Clear all

Admin pages doesn´t read CSS

5 Posts
2 Users
0 Reactions
636 Views
(@pabloam)
Posts: 14
Eminent Member
Topic starter
 

I´m having a trouble trying to enter to admin page, looks like CSS is not loaded.

 

See attachments:

http://imgur.com/a/DtHYt

 

Any help?

 
Posted : 14/06/2017 7:26 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Try to edit the file /lib/constants.php at line 6 set the version to "3.0.5", then go navigate to the page /admin/update.php and try to re-upgrade, may be I forgot to add some files changed in the latest upgrade pack and have uploaded new one.

If that will also fail then please download the version 3.0.6 from this website (Store > Purchase History), reimport the file combu_web.zip uncompress and replace the server files except for /lib/config.php

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 14/06/2017 7:31 pm
(@pabloam)
Posts: 14
Eminent Member
Topic starter
 

Now only show this error on Chrome console:

 

GET http://c0mbu50/admin/css/default.css net::ERR_NAME_NOT_RESOLVED
update.php:14 GET http://c0mbu50/admin/js/functions.js net::ERR_NAME_NOT_RESOLVED

 

That address is wrong: is not c0mbu50 us C0mbU50, where can I change that??

 

Thanks!

 
Posted : 14/06/2017 7:45 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

mmh... looking at the http URL it seems that your system is not recognizing the filter_input INPUT_SERVER "SERVER_NAME"... are you running PHP 5.5 or later?

anyway you can change the spelling of your combu folder in config.php, the constant is URL_ROOT

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 14/06/2017 7:49 pm
(@pabloam)
Posts: 14
Eminent Member
Topic starter
 
PHP Version 5.5.37

In config.php:

define ("URL_ROOT", "/C0mbU50/");

 

FIXED WITH THIS:

 

In /vendor/skaredcreations/combu/combu/Utils.php at lines 112-135 there’s two functions GetServerName and GetServerUrl, please try to replace them with this code:

 

public static function GetServerName() {

                $serverName = filter_input(INPUT_SERVER, "SERVER_NAME");

                if (empty($serverName) && isset($_SERVER["SERVER_NAME"])) {

                               $serverName = $_SERVER["SERVER_NAME"];

                }

                return $serverName;

}

 

public static function GetServerUrl($url = "") {

                $protocol = "http";

                if (!empty(filter_input(INPUT_SERVER, "HTTPS"))) {

                               $protocol .= "s";

                }

                $serverPort = filter_input(INPUT_SERVER, "SERVER_PORT");

                if (empty($serverPort) && isset($_SERVER["SERVER_PORT"])) {

                               $serverPort = $_SERVER["SERVER_PORT"];

                }

                if (!empty($serverPort) && $serverPort != 80) {

                               $serverPort = ":" . $serverPort;

                } else {

                               $serverPort = "";

                }

                return self::CombinePath($protocol . "://" . self::GetServerName() . $serverPort, self::CombinePath(URL_ROOT, $url));

}

 
Posted : 14/06/2017 8:02 pm
Share: