I know the P2 theme is kinda old and hasn’t been updated almost 8 years, but I still love it and never found a theme that’s even close to it. I now installed it on my new domain but can’t get it to work. I can install and activate it, but the website shows me the info:
There has been a critical error on this website.
Learn more about troubleshooting WordPress.
I checked the troubleshooting page and couldn’t resolve the issue.
Any idea what to do? I don’t wanna lose the theme. ??
]]>I’m getting the following error on my posts in a self-hosted P2:
Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 7 in /home/customer/www/spatter.blog/public_html/wp-content/themes/p2/inc/mentions.php on line 77
I see there’s a post about this from three years ago! Any fix in sight?
]]>Is the P2 theme in the repository compatible with Gutenberg/block editor? Is it compatible with WP 6? The theme currently in the repository doesn’t look to be updated to current the version or standards. I would like to build my own self-hosted version outside of WordPress.com.
]]>Anyone managed to set the posts in a grid format or masonry?
]]>Seven years ago this question has already been discussed here, but the thread then has been closed without further results.
So again, is there any chance that P2 (and/or WordPress/Gutenberg, for that matter) will have a block or function that generates a Facebook-style link preview? Slack and tumblr also have it, why not here?
I know, for WordPress there is the “visual link preview” plugin, but we cannot install it in P2 sites, and I think it’s time to address this issue.
]]>[Originally posted under FIXING WORDPRESS]
The p2 breathe theme with o2 plugin stops functioning properly in this scenario:
An authorized user ‘y’ (level=editor) adds a new user ‘x’ (level=contributor).
User ‘x’ signs on
User ‘x’ replies with comment to posts by ‘y’
At this point, the theme works fine, everything is showing as expected.
Here’s where it breaks:
User ‘x’ is deleted using either:
– wp_delete_user($id, $reassign); …or…
– Dashboard==>Users==>Delete (including the dialog to reassign)
In either method, the user is successfully removed.
**BUT**, it’s the ‘orphaned’ comment record that is disrupting the theme, and at that point:
=>The POST button spins off ‘o2 app not found’ messages, and
=>The console shows ‘TypeError: jsonifiedModel.userLogin is null’ message spelled out above.
If the orphaned comment record is deleted, the theme functions normally.
I have verified this is the case with a vanilla WordPress / p2-breathe / o2 instance. I can provide a link / signon to the vanilla P2 theme site.
The comments.user_id value retains the original user ‘x’ user_id after the user deletion.
If comments.user_id is changed to a live user_id, the problem goes away and the theme works normally.
]]>1. The tags are by default at the bottom of the post. An option to put them at the top would be appreciated, or perhaps some css to make this happen?
2. Since the old P2 the default hyperlink has changed so that the link is a ‘live’ hyperlink even if the tag is only used in the post where the tag appears. Formerly, the link was only a hyperlink if there had been other uses of the tag. I prefer the old style as it meant that a user would know (if tag was not hyperlinked) that there are no other uses of that tag on other posts…
]]>My googling suggests it may be a regex error, perhaps because php 7.3 PCRE (Perl Compatible Regular Expressions) has been updated to v2.
Not coming up if I revert to PHP 7.2
Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 7 in /home2/hearmore/public_html/wp-content/themes/p2/inc/mentions.php on line 77
]]>so like the title said..
in homepage we only have 1 post list
what i want to do is…
make it to 3 post list, so if i want to post with “tag 1” it will be posted to post list 1. if i want to post with “tag 2” it will be posted in post list 2.
what file i should edit?
or you have another solution for my “3 post list” needs?
When update to wordpress 5.1, the “click to show comment form” function is not working.
Tried to debug this, in console it shows:
”
Uncaught ReferenceError: addComment is not defined
at HTMLAnchorElement.onclick (VM207 :215)
”
Maybe a javascript that p2 had included had been changed in new wordpress?
Any idea how to solve this? thank you!
I’ve been using P2 for years but since WP5.1 it spits out this error at the top of the main page:
Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /home/katemcdo/mtlcityweblog.com/wp-includes/functions.php on line 3896
It seems to me P2 has not been updated for 4.5, but 5 is no longer accepting get_currentuserinfo at all. Any chance P2 will be updated soon? Thanks.
Otherwise, help in updating that php function would be nice.
]]>there is a tag below post name
I need it to clickable and when I have click it,
it would show all the post that have this tag.
anyway to do this?
please
Has anyone seen in their travels a current day version of this wonderful theme I am loth to use it for fear of compatibility issues arising. I wonder why there arent a 100 copycats of the theme?
]]>I see that as the Admin I can upload images/media into the stream, but others can’t. Is there way I can change that so anyone can uplaoad images/media with some sort of restriction on size?
]]>The functionality of this theme would work better as a plugin. I like the functionality of the theme, but I can’t use it as I already have a theme I prefer. Just wondering if any, plans to turn this into a plugin which would allow more people to use?
]]>Edit:I’m using buddypress plugin. So someone delete this post if no one knows about it,
Hi, anyone can login to test account [login credentials removed]
They only can post through dashboard not through actual page. They don’t have the whatcha up to? box.
how can I enlarge the sidebar?
]]>I put the textarea field to new post an html code field and text.
<textarea class=”expand70-200″ name=”posttext” id=”posttext” rows=”4″ cols=”60″></textarea>
<?php $settings = array( ‘textarea_name’ => ‘posttext’ );
wp_editor( $content, ‘posttext’ ); ?>
More in the edit field the post does not show the textarea field of html code and text
Does anyone know where I make this setting to also show in the edit of the post?
Thanks Daniel
]]>Sorry, this was the wrong place and I can’t find a way to delete post.
]]>After theme install & activate got the below deprecated messages.
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; P2 has a deprecated constructor in \themes\p2\functions.php on line 13
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; P2_Terms_In_Comments has a deprecated constructor in \themes\p2\inc\terms-in-comments.php on line 9
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; P2_Mentions has a deprecated constructor in \themes\p2\inc\mentions.php on line 16
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; P2_Search has a deprecated constructor in \themes\p2\inc\search.php on line 9
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; P2_Post_List_Creator has a deprecated constructor in \themes\p2\inc\list-creator.php on line 37
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; P2_Comment_List_Creator has a deprecated constructor in \themes\p2\inc\list-creator.php on line 181
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; P2_List_Creator has a deprecated constructor in \themes\p2\inc\list-creator.php on line 347
Is there any git repo. Where developers will contribute this theme?
]]>Hello. Just installed P2 theme and so far it looks exactly like the theme I was looking far. A quick question: Each post has options “Permalink | Reply | Edit”. Logically this list should include Delete. How should I add this feature?
]]>Do I have to code changes like link colors and behavior?
]]>will P2 become mobile responsive?
thank you.
]]>If I clear out all the posts, I cannot add a new post from the front. I get the “not connected error.” If I add a post from backend first, then I can add more posts (as previous poster mention). However, we automatically delete old posts and frequently must start from scratch. This was not a problem in WP 4.6.
Can this be fixed?
Thanks.
]]>Hello,
Just installed P2 on a fresh WP install. I’m getting this error when attempting to post: “Whoops! Looks like you are not connected to the server. P2 could not connect with WordPress.”
I’ve looked around at .htaccess settings, permalinks, and other posts online but can’t seem to find an answer that resolves this. I do not have any plugins activated.
Thanks for your help.
]]>A newbie to WordPress and looking for some advice on why this is not working.
Trying to setup an internal communications system using P2, I have installed the Multiple Themes plugin so that I can have the P2 theme on a seperate page this all seems to work fine apart from the P2 doesn’t give me the options to post.
Have I missed something else or do I need to change something else to enable this ?
]]>I would like comments and disqus to show on the frontend below posts and status updates. When you use reply with posts they show up and can be seen when you hit the permalink iot takes you to the “post” and disqus shows up.
so
1. can you post comments and disqus then have them show on front end
2. Can you get disqus to show on the frontend below the post
My Featured Image selection in posts is missing …was it ever there?
]]>Is there a plugin that will place a choice of emojis emoticon thingys on the frontend to use?
]]>I want to add category selection to the front end using Mercury P2
Hopefully fairly easy as business major not computer science ??