how to change simple editor to rich editor in textarea
how to change simple editor to rich editor in textarea
"Cannot use object of type Comment as array"
Hello, I'm testing the BlogPage extension with Mediawiki 1.29.0, PHP 5.5.14 and Comments 4.2.1.
Everytime I save a new article I get this fatal error:
[Fri Aug 25 10:19:23.682888 2017] [php5:error] [pid 60677] [client xxx.xxx.xxx.xxx:34360] PHP Fatal error: Cannot use object of type Comment as array in /usr/local/mediawiki/testwiki/extensions/BlogPage/BlogPageClass.php on line 931, referer: http://xxx.xxx.xxx.xxx/index.php/Speciale:ArticlesHome
The article seems to be saved anyway but when I try to open it I get the same error.
Is my PHP version too old?
I fixed the problem by applying the solution indicated in the post below, i.e. disabling comments of the day.
I'm getting the screen "A database query error has occurred. This may indicate a bug in the software" whenever someone tries to view a blog page on my site. Enabling the debug info, I get the message: Error: 1054 Unknown column 'Comment_Plus_Count' in 'field list'
I'm aware that there was a bug like this some time ago, but I just installed the master development version for the blog page and comments extension, so any idea what's going on here?
I get the same error, any advice? I looked at the sql script from the Comments extension and it doesn't create this 'comment_Plus_Count' column when creating the table Comments, so could that mean the Comments extension is responsible for this error?
I changed the value to false on line 96 in Blog.php and it solved it. This means it won't show the "Comments of the day" but at least it's working now!
'comments_of_day' => false,
Thanks for sharing the fix, it helped me solve my problem. I'm using MW 1.28 and now this setting has moved to extension.json. So the fix should look like this:
extensions/BlogPage/extension.json:36: "comments_of_day": false,
From Extension:Comments. It should be added to BlogPage docs...
The extension also comes with a "Comments of the Day" feature (
<commentsoftheday />), which by default is not enabled. You can enable this feature in the wiki's LocalSettings.php, by adding the following after the require_once line:
creation etc all are ok, but opening any blog posts shows the below error.
A database query error has occurred. This may indicate a bug in the software.
Notice: Uncommitted DB writes (transaction from DatabaseBase::query (WikiPage::pageData)). in .......\includes\db\Database.php on line 4262
Notice: JobQueueGroup::__destruct: 1 buffered job(s) of type(s) EnqueueJob never inserted. in ..........\includes\jobqueue\JobQueueGroup.php on line 420
Please provide some assistance
Was experiencing the same. The answer above to question 'Error 1054' solved my problem. Please check it out.
Database error - JobQueueGroup::__destruct
Followed instructions below about changing line 96 in /extensions/BlogPage/Blog.php to false
'comments_of_day' => false,
On attempting to view the blog posts, one gets:
A database query error has occurred. This may indicate a bug in the software. Notice: JobQueueGroup::__destruct: 1 buffered job(s) of type(s) EnqueueJob never inserted. in /home/pindula/public_html/includes/jobqueue/JobQueueGroup.php on line 420
I enabled SQL debugging and now I get:
A database query error has occurred. This may indicate a bug in the software. Query: SELECT Comment_Username,comment_ip,comment_text,comment_date,Comment_user_id,CommentID,IFNULL(Comment_Plus_Count - Comment_Minus_Count,0) AS Comment_Score,Comment_Plus_Count AS CommentVotePlus,Comment_Minus_Count AS CommentVoteMinus,Comment_Parent_ID,page_title,page_namespace FROM `Comments`,`page` WHERE (comment_page_id = page_id) AND (UNIX_TIMESTAMP(comment_date) > 1463817075) AND page_namespace = '500' ORDER BY Comment_Plus_Count DESC LIMIT 5 Function: BlogPage::getCommentsOfTheDay Error: 1054 Unknown column 'Comment_Plus_Count' in 'field list' (localhost) Notice: Uncommitted DB writes (transaction from DatabaseBase::query (WikiPage::pageData)). in /home/pindula/public_html/includes/db/Database.php on line 4262 Notice: JobQueueGroup::__destruct: 1 buffered job(s) of type(s) EnqueueJob never inserted. in /home/pindula/public_html/includes/jobqueue/JobQueueGroup.php on line 420
Malformed "by" line
I'mm getting a malformed "by" line it looks like it should be
oddly when rendered I'm seeing
Authorname]][[Category:6th January 2015
Anyone else seeing this?
Wiki version 1.24.1
sigh edit wont work
used the wrong tags on line2
I'm getting this too.
Is there a fix please?
I have this problem and know how to also solve it. It probably has something to do with the BlogPage.php file, but what needs to be done there.
Do you know that? Would be very grateful for any help.
I'm getting this too. Usually fix it by editing the categories and putting the date on the line below. I would like that to be automatic tho.
Are you running the latest version of BlogPage? I fixed a bug which sounds awfully lot like this one last December.
Took some months but I finally realized that I have to go there and apply the little change that you made. Good work it was easy. Please keep updating and adding functionality. I wish I could assist. ~~~~
Yes, unless 2.2 isn't the latest.
don't work with mediawiki 1.19.0
Hi i using mediawiki 1.19.0, i have installed SocialProfile,Comments and VoteNY extensions but when i try create new blog says this message
Warning: Invalid argument supplied for foreach() in /var/www/mediawiki/mediawiki3/extensions/SocialProfile/UserStats/UserStatsClass.php on line 611
Ha ocurrido un error de sintaxis en una consulta a la base de datos. Esto puede indicar un error en el software. La última consulta a la base de datos que se intentó fue: (Consulta SQL oculta) dentro de la función «UserStatsTrack::updateWeeklyPoints». La base de datos devolvió el error «1146: Table 'mediawiki3.wiki_user_points_weekly' doesn't exist (localhost)».
I search in the code the sql code but i can't found it.
To be specific, it's not an extension bug per se, but rather a problem with your configuration. You have set (at least)
true without creating the necessary database table(s); the schemas for user_points_weekly, user_points_monthly and user_points_archive are located in Extension:RandomFeaturedUser's directory on SVN (yes, SVN, as opposed to git).
Create those tables by running something line this (for each different file) from command line:
php path/to/your/wiki/maintenance/sql.php path/to/your/wiki/extensions/RandomFeaturedUser/user_points_weekly.sql
Unable to download with ED
I can't download it! (No such extension "BlogPage")
ExtensionDistributor seems to be broken, once again. You can either download a SVN client or download the files on a one-by-one basis via ViewVC.
I've installed the extension und everything went well.
But after writing a blog post I only get a "white" site. If I click on the blog homepage there's the following error code: "A database query error has occurred. This may indicate a bug in the software."
What could be wrong?
Please enable additional debugging information as described in Manual:How to debug and post the results here. A so-called "white screen of death" means that there was a (fatal) PHP error somewhere, but this usually isn't displayed to the end-user, but rather logged into the server's PHP error log (if error logging is enabled); I need to know what the precise error message was in order to be able to help you out.
Captcha to Comments of the BlogPage-Articles
Hello MediaWiki friends I have a question for the blog Page extension. I installed it and have seen that guests are allowed to comment specifically as anonymous.
I fear that there will be a lot of spam because you have no Captcha in the comments. How can we Captcha used or how can I deactivate comment for guests?
Can I perhaps someone help?
Thank you in advance.
This would be more appropriate in Extension talk:Comments, or better yet, as a properly filed report in Phabricator, but anyway: yes, you're right, there is currently no support for Extension:ConfirmEdit in the Comments extension, and there probably should be! I might look into it, but there's no definitive ETA or anything.