问题标签 [question2answer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
1070 浏览

mysql - 网站崩溃,无法创建/写入文件'/tmp

我有一个使用question2answer脚本和一些定制代码的网站。我最近遇到了网站崩溃的问题。我打开页面时遇到的错误是:

数据库查询错误1 Can't create/write to file '/tmp/#sql_819_0.MYI' (Errcode: 13)

tmp 权限似乎一切正常:drwxrwxrwt

我不知道这是什么时候发生的。如果我重新启动服务器,一切正常,我没有收到任何错误。然后,一段时间后它再次发生。站点已关闭,我得到的只是该消息。

真的需要你的帮助!

0 投票
1 回答
267 浏览

question2answer - Question2Answer 未知表引擎'Innodb'

在我的管理员中查看 PHP 表时出现问题,它向我显示了此错误

未知的表引擎“InnoDB”

脚本打不开告诉我

连接已重置

几天后,我突然发现我的一个数据库有 13 GB 大小。我删除了它,但是服务器上的问题从今天开始,我找不到mysql日志文件

我将 centos 6 与 whm cpanel 一起使用。

0 投票
1 回答
146 浏览

django - 网络服务器安全 wordpress、django 和 question2answer

我有一个网站,我在不同的子目录中安装了三个脚本,django、wordpress 和 question2answer,使用不同的数据库。所有身份验证都由 django 处理,django 为 wordpress 和 question2answer(bridge) 创建登录 cookie,并登录到整个站点,而不会对 wordpress 和 question2answer 端进行任何黑客攻击。

我想知道的是,如果其中一个被黑客入侵,那么我的其他数据库和子文件夹是否会受到保护。就像黑客将包含在子目录和数据库中还是会是站点范围的黑客。(我的意思是大多数黑客事件的情况)

解决此问题的一种方法是将它们移动到子域并使用远程 sql 指向不同的服务器,从而允许从 django 访问数据库。但是有些人认为迁移到子域会导致问题,例如我们必须为 seo 构建付出两倍的努力,因为它们是不同的子域?(真相是什么?)

0 投票
1 回答
9310 浏览

php - PHP Facebook API 页面访问令牌

我正在尝试为 question2answer 构建一个插件(不需要知识),当发布新问题时,它将该问题作为活动发布在 facebook 页面上。实现这一点不是问题。我遇到的,是坚持。

据我了解,如果我错了,请纠正我,您只能通过管理员用户的帐户直接获取页面的访问令牌。当我们存储的访问令牌的页面管理员因注销而过期时,这会导致发布问题。好吧,我们不能指望他们永远保持登录状态,对吧?

还有其他方法可以解决这个问题吗?就像让用户在那个页面上发帖一样?

这是我目前正在使用的代码(这不是最终的,没有错误处理)。任何说 qa_opt 的东西都只是存储在 question2answer 数据库中的东西

0 投票
1 回答
165 浏览

ckeditor - 如何将 tinypic 与 ckeditor 集成(所见即所得)?

我有一个使用 Question2answer 脚本的网站,现在我想要集成 tinypic 来上传图片?我的网站怎么可能使用所见即所得的编辑器。

非常感谢您的帮助

0 投票
3 回答
1613 浏览

laravel - Laravel + 问答框架

我对 Laravel 最满意,并希望使用 Q2A 或 OSQA 等问答框架来扩展它。如何将两者整合在一起(例如 Q2A + Laravel)?

0 投票
1 回答
2841 浏览

ckeditor - CKEditor 配置不会将文本更改为从右到左

我已将 config.js 编辑为

但我仍然让编辑器在我的 Question2Answer 平台中从左到右。我还应该怎么做才能使我的编辑器从右到左?

0 投票
1 回答
330 浏览

php - 500 Error when trying to define path to parent directory

I am trying to integrate Wordpress with Question2Answer so that they both use the same database for users. The instructions for doing this are pretty straight-forward. All I need to do is define the directory for my Wordpress installation in the Question2Answer config file. Unfortunately, no matter how I define the path to the Wordpress directory, I get a 500 error.

The urls for the installations are:

Wordpress: http://stage.example.com

Question2Answer: http://stage.example.com/ask

The directory structure is

Wordpress: public_html/stage

Question2Answer: public_html/stage/ask

Definition:

I've tried 100 different ways to define the path to the Wordpress directory in my Question2Answer config file and I keep getting a 500 error. I'm fairly certain that I am defining the path to the directory correctly so I think it must be some sort of permissions or .htaccess problem but I'm not sure what it could be. Any ideas?

Here is the error:

PHP Question2Answer fatal error: Could not find wp-load.php file for WordPress integration - please check QA_WORDPRESS_INTEGRATE_PATH in qa-config.php

0 投票
1 回答
143 浏览

mysql - 部署 Question2Answer

我试图部署Question2Answer。这些是我遵循的步骤:

  1. 创建 PHP 5.4 墨盒
  2. 创建 MySQL 5.5 磁带
  3. 在本地克隆 PHP 存储库并添加 question2answer-latest.zip 的内容
  4. 从示例中创建 qa-config.php 并调整 MySQL 凭据:

    /li>

然后我推送更改并打开我的应用程序的 URL。然而,我得到的只是一个空白的页面。

我错过了什么?

0 投票
1 回答
72 浏览

mysql - 一个MySql 两个系统?

我正在构建一个包含两个 question2answer 平台和一个 dokuwiki 的网站。他们都需要MySql。我的虚拟主机有两个 MySql 数据库的限制。我可以将同一个 MySql 数据库链接到 2 个 question2answer 平台,还是一个 question2answer 和一个 dokuwiki?还是会导致冲突?