【以下均可删除】
提问前请务必仔细阅读 如何排查故障常见问题

问题描述(报错内容):我不知道啊!!QAQ
搞完一直提示:跨域请求时出现问题,请刷新页面后重试

已尝试的解决办法(演示网址或图片):Image description
搜索了很多方法都没有用
Image description

  • 14569 回复了此帖
    • [已注销]

    • 最佳回复岛岛 选择

    最佳方法是直接安装1.8.1fla,数据库备份好了直接导入数据库然后就没毛病了,大家可以看看1fxd.cn正常访问

    Image description
    找不到public文件夹
    Image description
    我这是咋了!

    你是不是两个域名?配置文件跟根目录的conf.php用同一个试试~

      Protoss 我有一个1fxd.cn,这个域名打开就自动下载一个文件一脸懵逼
      Image description
      <?php

      /*

      • This file is part of Flarum.
        *
      • For detailed copyright and license information, please view the
      • LICENSE file that was distributed with this source code.
        */

      $site = require ‘./site.php’;

      /*
      |——————————————————————————-
      | Accept incoming HTTP requests
      |——————————————————————————-
      |
      | Every HTTP request pointed to the web server that cannot be served by simply
      | responding with one of the files in the “public” directory will be sent to
      | this file. Now is the time to boot up Flarum’s internal HTTP server, which
      | will try its best to interpret the request and return the appropriate
      | response, which could be a JSON document (for API responses) or a lot of HTML.
      |
      */

      $server = new Flarum\Http\Server($site);
      $server->listen();

      Image description

      <?php

      /*

      This file is part of Flarum.
      *
      For detailed copyright and license information, please view the
      LICENSE file that was distributed with this source code.
      */
      $site = require ‘./site.php’;

      /*
      |——————————————————————————-
      | Accept incoming HTTP requests
      |——————————————————————————-
      |
      | Every HTTP request pointed to the web server that cannot be served by simply
      | responding with one of the files in the “public” directory will be sent to
      | this file. Now is the time to boot up Flarum’s internal HTTP server, which
      | will try its best to interpret the request and return the appropriate
      | response, which could be a JSON document (for API responses) or a lot of HTML.
      |
      */

      $server = new Flarum\Http\Server($site);
      $server->listen();

      这个怎么解决啊!!!!!

      这个就不懂了,不过我建议你如果是跟我一样是程序小白的话,
      对迁移这事,我上个月迁移10多次服务器,每次都是导出数据库,下载图片文件,其它都不要,直接安装一个新的Flarum,再导入数据,重装插件。
      其本是不会出现什么问题。整个过程大约30分钟,比打包文件,下载上传估计还快。

      你连源码都搞丢了。这算什么迁移?

        谁能救救我QAQ

        岛岛

        你原来服务器的代码还有吗?如果有,先整站打包(源码 + MySQL数据库)。
        再到新服务器解压回去不就行了吗?

          封启 我试了,我就是全部打包还有配置好环境但是还是报错

            最抽象的是,我访问我的域名1fxd.cn没有用直接就是下载一个文件,这个不知道怎么解决

              岛岛

              Image description

              你清一下缓存看看。

              F12,按住地址栏左侧那个转圈圈几秒。

              Image description

              岛岛

              Image description

              你域名没配好。看一下
              Image description

              再进后清一下缓存
              Image description

                封启 哦哦我试试,现在还在上班回去我试试

                岛岛 标题得改改,最讨厌“完蛋!”、“救命!”这样提问的

                  14569 咋办啊QAQ教教我,我现在域名访问不了访问就下载一个文件
                  (域名1fxd.cn)

                  解决了是解析的问题导致下载文件的

                  下载一个更加抽象的问题了
                  Image description
                  跨域请求时出现问题,请刷新页面后重试。
                  这个咋解决????