Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

successful installation but the frontend and admin pages not showing properly #384

Open
hdushku opened this issue Aug 19, 2017 · 7 comments

Comments

@hdushku
Copy link

hdushku commented Aug 19, 2017

After successfuly installing the repository in c9 by going to HOST_NAME/installer.php and installing demo data the sample pages that are shown for frontend and admin are:
dotplant2

dotplant2_2

@davidtim
Copy link

davidtim commented Aug 19, 2017 via email

@hdushku
Copy link
Author

hdushku commented Aug 19, 2017

web install
followed the manual in here:
http://docs.dotplant.ru/en/install.html

@davidtim
Copy link

davidtim commented Aug 19, 2017 via email

@hdushku
Copy link
Author

hdushku commented Aug 19, 2017

I have typed this domain:
https://dotplant2-myusernameinc9.c9users.io/

@davidtim
Copy link

davidtim commented Aug 19, 2017 via email

@hdushku
Copy link
Author

hdushku commented Aug 19, 2017

I checked , it was the same.
Somehow it is now working
I removed the https:// part .
Thanks!

@rossaddison
Copy link

rossaddison commented Oct 22, 2020

Yes on wampserver I adjusted the following file located at:
C:\wamp64\www\dotplant2\web\theme\views\modules\basic\layouts\main.php

and changed the https to http so that it could be tested locally on my wampserver.

<base href="https://<?= Yii::$app->getModule('core')->getBaseUrl() ?>">

and this is my dotplant2/config/web.php ... defaulttheme setting.

'DefaultTheme' => [
'class' => 'app\extensions\DefaultTheme\Module',
],

Also worth changing, in case you get missing fontawesome icons using the backend/dashboard route, ....(after assigning the role 'admin' to user_id 1 in the auth_assignment table directly by inserting in phpmyadmin because I could not get access to the backend)... , is the following file:

dotplant2/assets/AppAsset.php

<?php

namespace app\assets;

use yii\web\AssetBundle;

/**
 * Default DotPlant2 asset bundle for frontend.
 * You can use your own, but don't forget to include CMS js and css files.
 *
 * @package app\assets
 */
class AppAsset extends AssetBundle
{

    public $sourcePath = '@app/assets/app';
    public $css = [
        'css/dotplant.css',
        '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css',    <---- INSERT!!        
    ];
    public $js = [
        'js/main.js',
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
        'yii\bootstrap\BootstrapPluginAsset',
        'yii\web\JqueryAsset',
        'yii\validators\ValidationAsset',
        'yii\widgets\ActiveFormAsset',
        
        //'\kartik\icons\FontAwesomeAsset',**    <-----  REMOVE!!
    ];
}  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants