monstra-cms / monstra

THIS PROJECT IS NOT SUPPORTED ANYMORE! Check FLEXTYPE.ORG
http://flextype.org
MIT License
396 stars 121 forks source link

Monstra + VestaCP - Blank Admin Page #343

Open petersondsz opened 10 years ago

petersondsz commented 10 years ago

Hi all. I have a VPS with VestaCP and i install MONSTRA CMS . I can install with no issue. And a can see the site, and i can login via link in front page. But if i go to (mydomain.tld/admin) i cant enter in admin . Show only a blank page. What happens ? I see this RUSSIAN guy making this FIX: http://translate.google.com.br/translate?hl=pt-BR&sl=ru&tl=en&u=http%3A%2F%2Fhamdeew.ru%2Fpage%2Fmonstra-cms-pustaja-stranica-vmesto-adminki

Tht is the solution or this bug has fixed ?

Awilum commented 10 years ago

Hi, this is a solution for this specific strange bug.

Date: Fri, 22 Aug 2014 09:11:52 -0700 From: notifications@github.com To: monstra-cms@noreply.github.com Subject: [monstra-cms] Monstra + VestaCP - Blank Admin Page (#343)

Hi all. I have a VPS with VestaCP and i install MONSTRA CMS . I can install with no issue.

And a can see the site, and i can login via link in front page. But if i go to (mydomain.tld/admin) i cant enter in admin . Show only a blank page. What happens ? I see this RUSSIAN guy making this FIX: http://translate.google.com.br/translate?hl=pt-BR&sl=ru&tl=en&u=http%3A%2F%2Fhamdeew.ru%2Fpage%2Fmonstra-cms-pustaja-stranica-vmesto-adminki

Tht is the solution or this bug has fixed ?

— Reply to this email directly or view it on GitHub.

petersondsz commented 10 years ago

Thanks for your reply.... I make this trick and dont work . Im thinking.. my php version is 5.3 .... that is the reason ? I loved Monstra CMS and i have a plan to use in all my clients projects. What is going on ? I have any tip ?

Ps: I can see the intro page and i can login via link in front page description... but where i move to admin folder .. see all blank

thoncs commented 10 years ago

Issue is not fixed. Google translate breaks the php. This section works.

// Main engine defines define('DS', DIRECTORY_SEPARATOR); //Patch from http://hamdeew.ru/page/monstra-cms-pustaja-stranica-vmesto-adminki $ar_root = explode(DS,dirname(FILE)); if(end($ar_root)=="admin") array_pop($ar_root); $root = implode("/",$ar_root); define('ROOT',$root) ; echo ROOT; //define('ROOT', rtrim(str_replace(array('admin'), array(''), dirname(FILE)$ //End of patch define('BACKEND', true); define('MONSTRA_ACCESS', true);

macron13 commented 8 years ago

VestaCP Support not recomend to use USER admin as a web-user, only for administration the panel. Create new user, please