We’re having trouble posting Announcements.
It seems to save text fine when I manually type text in, but not when I copy/paste from another document. When I paste, it all looks fine (I’ve double-checked the source code), it confirms the save, but then it doesn’t display. And if I go to edit it again, it appears the changes haven’t been saved (in either the short or primary description). However, it all works fine if I simply type the content in. But of course, we can’t do that for multi-page CFPs and other announcements.
I have tried copying from multiple sources. For pasting, I have tried using command-V, the Edit > Paste (and Paste as Plain Text), and WYSIWYG editor to do them – the only odd thing is that the paste feature in the WYSIWYG editor itself doesn’t seem to paste at all (I get an error in Firefox that says " Your browser doesn’t support direct access to the clipboard. Please use the ⌘+X/C/V keyboard shortcuts instead." I’ve tried in both Chrome and Firefox.
This is honestly one of the weirdest bugs I’ve ever seen on any platform. Has anyone run into any similar issues?
Site: Announcements | Catalyst: Feminism, Theory, Technoscience
We’re running OJS 3.1.2.1.
Hi @catalyst,
I suspect the pasted information contains HTML tags that aren’t allowed by the allowed_html setting in your config.inc.php configuration file.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher,
Thanks for following up! I thought that might be an issue, but the tags are all very standard (at least for now): basically just
s and
s (seen screenshot). I also tried copying from plain text, with no luck.
Is it possible that our config.inc.php file isn’t allowing even these basic tags? (Though it does seem to auto-generate those when I just type in info…) Are we able to view/edit the config file from within the OJS back-end, or is that something we need to work with our hosting library’s technical team on? (Sorry, I can’t find it or seem to understand how to access it through OJS documentation – I have higher-than-average web skills, but I’m still new to many of the technical aspects of OJS).
thanks,
Harris
Hi @catalyst,
Did you mean to include screenshots in your above post? They didn’t come through.
Regards,
Alec Smecher
Public Knowledge Project Team
Sorry, yes, forgot to upload. Here it is.

Also for what it’s worth, I was able to manually add the same
and
tags and even a link, but again, still no luck when I try to paste, even if I manually clean up the HTML: https://catalystjournal.org/index.php/catalyst/announcement/view/760.
Hi @catalyst,
I think part of your post (possibly HTML elements) is missing; you might need to use the code quoting tools in this forum (the </>
button at the top) to post them.
Regards,
Alec Smecher
Public Knowledge Project Team
Sorry, I’m a little confused: can you say more about what you mean?
To clarify on my end: this announcement doesn’t actually include code. The screenshot is just to show what it looks like when I view the source code (that it doesn’t include any strange HTML). What you see here is in fact the HTML tags that are generated when I paste it in – they all seem correct to me, no strange additional tags (like Word sometimes inserts). The original document that we’re trying to post from is in this Google Doc. Though again, I’ve also tried cpy/pasting from a plain-text version just to be safe.
Any other insights you might have would be helpful.
thanks again,
Harris
Hi @catalyst,
I mean this part of your post above:
Also for what it’s worth, I was able to manually add the same
and
tags and even a link…
It looks like you probably tried to include some HTML there, but the forum software filtered it out.
Regards,
Alec Smecher
Public Knowledge Project Team
Oh sorry, I see. I was just trying to say that I had used basic tags like <p>
and <br />
in the Announcement on our journal site – not anything too complex HTML-wise. And that when I manually type in those tags it works fine. So I doubt that it’s some kind of HTML-related error on our site.
Again, if you have any suggestions on how we might resolve this, we’d greatly appreciate it.
Hi @catalyst,
Hmm, I’d suggest checking the announcement_settings
table to see what’s been saved there. Try…
SELECT * FROM announcement_settings WHERE announcement_id=xyz;
…where xyz
is the announcement ID (760
in the example you showed above).
Regards,
Alec Smecher
Public Knowledge Project Team
Thanks, it seems to have resolved itself! Or our journal admin also cleared the journal cache, so perhaps that fixed something. Thanks for your help and fingers crossed it was just a temporary glitch.