报个 bug



  • @网站运营团队
    我发现,现在浏览某个页面,突然之间,网页就会自动刷新,然后随机跳转到一些页面,主要是随机跳转到主页,和板块分页。



  • @qyvlik 谢谢提供Bug线索。
    但是我这边没有重现。这儿呢,还需要持续跟踪一下。
    对了,@qyvlik 你可以访问本论坛的log吗,可以调取一下log和event资料,详细了解一下是什么原因导致的无故跳转。

    本贴转至会客厅。



  • @jiangcaiyang 访问不到 log。



  • @qyvlik 我看log,似乎是这个时间段的:

    26/6 18:33 [27437] - error: /404
     invalid csrf token
    data: { image: 
       { fieldName: 'files[]',
         originalFilename: 'upload-3bbb9715-a331-4a4f-ac0e-39a756f953ba',
         path: '/tmp/OzL9qEaFo3M_teECI3gYhFNk',
         headers: 
          { 'content-disposition': 'form-data; name="files[]"; filename="upload-3bbb9715-a331-4a4f-ac0e-39a756f953ba"',
            'content-type': 'image/png' },
         size: 14581,
         name: 'upload-3bbb9715-a331-4a4f-ac0e-39a756f953ba',
         type: 'image/png' },
      uid: 5 }
    image: { fieldName: 'files[]',
      originalFilename: 'upload-3bbb9715-a331-4a4f-ac0e-39a756f953ba',
      path: '/tmp/OzL9qEaFo3M_teECI3gYhFNk',
      headers: 
       { 'content-disposition': 'form-data; name="files[]"; filename="upload-3bbb9715-a331-4a4f-ac0e-39a756f953ba"',
         'content-type': 'image/png' },
      size: 14581,
      name: 'upload-3bbb9715-a331-4a4f-ac0e-39a756f953ba',
      type: 'image/png' }
    26/6 19:15 [27437] - info: [emailer.smtp] Sent `categoryNotifications_topic` email to uid 705
    

    接下来再作分析。


Log in to reply
 

走马观花

最近的回复

  • 离线安装包的下载地址是:coding源github源

    read more
  • 看到过很多代码都有用这个

    read more
  • 做得还不错的嘛。希望继续呢。

    read more
  • 首先我看到的就是option选项。这个选项在cmake中的文档是这样的:

    Now let us consider making the MathFunctions library optional. In this tutorial there really isn’t any reason to do so, but with larger libraries or libraries that rely on third party code you might want to. The first step is to add an option to the top level CMakeLists file.

    # should we use our own math functions? option (USE_MYMATH "Use tutorial provided math implementation" ON)

    This will show up in the CMake GUI with a default value of ON that the user can change as desired. This setting will be stored in the cache so that the user does not need to keep setting it each time they run CMake on this project. The next change is to make the build and linking of the MathFunctions library conditional. To do this we change the end of the top level CMakeLists file to look like the following:

    # add the MathFunctions library? # if (USE_MYMATH) include_directories ("${PROJECT_SOURCE_DIR}/MathFunctions") add_subdirectory (MathFunctions) set (EXTRA_LIBS ${EXTRA_LIBS} MathFunctions) endif (USE_MYMATH) # add the executable add_executable (Tutorial tutorial.cxx) target_link_libraries (Tutorial ${EXTRA_LIBS}) 参考来源:这里

    在我看来,cmake中的option命令更像是一个宏,规定了是否定义这个宏以及这个宏所带来的连锁反应。option规定的这个宏,通过ON的设定来表示是否定义。

    read more

关注我们

微博
QQ群