• Resolved nick6352683

    (@nick6352683)


    Love the idea, but as it right now, I can’t use it. I’m getting an error message after I create a post. This is the message:

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampp\htdocs\acf58\wp-includes\class.wp-styles.php:242) in C:\xampp\htdocs\acf58\wp-includes\pluggable.php on line 1251

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampp\htdocs\acf58\wp-includes\class.wp-styles.php:242) in C:\xampp\htdocs\acf58\wp-includes\pluggable.php on line 1254

    That said, the post is successfully created, testing environment, Win 7 Pro, Xampp php 7.2, latest WP version (v5.2.1).

    Suggestion: Since I can’t assign to a category and assign a a featured image, which I guess is not the purpose of this plugin, the microblogs should be assigned to a new CPT, and not to the actual blog. Otherwise, I have to edit each post I create and assign the Category and the Featured Image, which beats the purpose of quickly doing things on the front end.

    Here is a short 40sec. video of my experience…

    I truly love the idea of my own personal “Twitter”, but I can’t use it as it is…

    Thanks,
    Nick.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wilcosky

    (@wilcosky)

    Thanks for the suggestions, @nick6352683.

    I can’t reproduce that error on my installation. Typically, if that error was due to this plugin, it would say so. In other words, the error would say something like, header already sent by narwhal-microblog.php, which is the file that makes this plugin work.

    wp-styles.php seems to be causing it and most likely there’s something about your theme that this plugin doesn’t like. You can read more about this warning at the following site. As you’ll read in this article, typically it would mention this plugin in the warning if this plugin truly was the problem.

    https://www.wpbeginner.com/wp-tutorials/how-to-fix-pluggable-php-file-errors-in-wordpress/

    Since I cannot duplicate this issue, and there are no errors or warnings in my error log, I’ll be marking this as resolved for now. But, if anyone else comes along and has the same problem I’ll dig deeper.

    As far as categories and images, I’m hoping to create a separate plugin with more features like that. As you mentioned, that’s not the point of this plugin. This plugin really is to just post quick text-only thoughts. Like a minimal Twitter. Twitter keeps it simple and doesn’t use categories, just hashtags. So, that’s one reason I didn’t add a category field. For my blog at least, I wanted the form to be super simple, and super quick, with the least amount of fields as possible to fill out.

    One could stick with “uncategorized” or, make their default category something like “thoughts,” then when this form is used, these posts will automatically be added to that default category. Then you also have the tagging to help find the posts later.

    Besides creating a completely separate fancier version of this plugin, maybe I’ll at least add the ability to upload a featured image in the future. After all, Twitter allows images and that is what I’m somewhat emulating here.

    Thanks again for taking the time to try this plugin out! It sounds like it may not be what you need. I would search the plugin repository for a full front-end posting plugin. If you do still want to try to get it working, try testing it on a fresh installation, different theme, and/or deactivate all other plugins to help pin point the issue.

    Billy

    Thread Starter nick6352683

    (@nick6352683)

    Hi Billy,

    I will install this plugin on a clean WP installation and start adding the theme I was using + plugins one by one, to see who the culprit of the error message was.

    Your reply touched all the points I made except one… having this plugin create posts for a CPT, not for the main blog. I understand and AGREE the purpose of this plugin, and I don’t need the Category and Feature Image assignments. However, having this plugin using the WP main blog to create the posts with this, makes my archive pages look ugly, as all my normal blogs will be displayed with a featured image. I suppose for my needs, I can always edit the plugin, and add the appropriate code to create a CPT, and have the plugin use that CPT instead of the site’s main blog.

    Thanks, I still think this was a GREAT idea, it just needs some tweaking for my needs.

    Thread Starter nick6352683

    (@nick6352683)

    You were correct by the way, the bug was caused by another plugin, since on a fresh WP installation, with the same theme (which I had created btw), all is fine… When I have some time, and that test site had many plugins installed, I will hunt down the guilty plugin, and notify you, so you will know…

    Plugin Author wilcosky

    (@wilcosky)

    @nick6352683 – I have a new plugin which may work better for you. It is not available at www.remarpro.com yet. Instead you need to download it using the link below. This version has a title field (optional to input a title), category field, draft post mode, and it uses WordPress’ default editor which includes the add media button for uploading images. This version still does not have a way to change the post type automatically in the settings. But, if you really want to do that, you can add a line of code manually. Open the main php file in the plugin main folder. Around line 135 you will see code which inserts everything into the database. Add a new line just above the ‘post_author’ line, and paste in:

    'post_type'=>'custom_post',

    Of course change custom_post to the name of your custom post type.

    https://wilcosky.com/download/132/

    Probably within a week or so this new version will also be available here in the WordPress plugin directory.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bug report and suggestions…’ is closed to new replies.