-1

I have installed SilverStripe on several servers successfully in the past (but I'm not a SilverStripe expert). This time my SS install fails to work and I'm at a loss how to fix it.

The Problem

  • SilverStripe 2.4.6 installed correctly on the server (AFAIK).
  • The front-end works as expected. (Show default theme. Pages all load correctly.)
  • I am able to log into the CMS admin section succesfully. The CMS loads but when changing site pages in the CMS using the browser pane on the left, the CMS shows the circular loading symbol. The new page load never completes.
  • Using the console of Firebug in Firefox - When attempting to change pages in the CMS (by clicking on the page browser pane) the CMS tries to load two pages. The second page request 404s. SilverStripe CMS with error. The first GET request is from the initial page loads. The following POST+GET requests fire when clicking on the page tree to change pages.

Attempting to Find the Solution

I've tried deleting and re-installing silverstripe twice. (2.4.7 and 2.4.6) Both times the problem recurs.

A strange thing is that this server is already running two other silverstripe sites (both of which I installed without a hitch). All three websites are accessed via different domains. I tried accessing this install via another domain thinking there might be something wrong with how this third domain is configured but that didn't help either.

What should I try now? I'm stumped.

Thanks in advance.

Responses to Comments

Check your root .htaccess file. Make sure RewriteBase is set to /

Checked. Full .htaccess on PasteBin

Indeed the javascrip URL is strange. Check if there is anything unusual about what's being returned from the previous POST request. Is the site running in dev, test or live mode?

I can't see anything unusual in the POST request.

Clue Found: The site is running in DEV mode. Switching to LIVE mode and the problem disappears. Also the second GET request only shows up in DEV mode.

Example Post request with response.
Example Get request with respones.

4

1 回答 1

1

这不仅仅是一个修复,但如果你宁愿编码而不是寻找错误,它可能值得一试!(请记住在进行此修复之前退出 SS)

在您的 mysite/_config.php 文件更改

Director::set_environment_type("dev");

if(!isset($_GET['isDev']))
   Director::set_environment_type("dev");
else
   Director::set_environment_type("live");

然后你就可以在dev模式下正常开发网站,在live模式下使用admin,避免你刚才去的bug:http://{your_domain}/admin?isDev=0

当 pastebin.com 没有超载时,NB 可能会找到正确的答案,我可以看到您的回复!

于 2013-03-07T02:17:39.333 回答