PressForward / pressforward

PressForward is a free plugin that provides an editorial workflow for content aggregation and curation within the WordPress dashboard. It is designed for bloggers and editorial teams who wish to collect, discuss, and share content from a variety of sources on the open web.
GNU Affero General Public License v3.0
120 stars 21 forks source link

Even at maximum sanitation, http://www.adelinekoh.org/feed/ items will not enter the database. #120

Closed AramZS closed 10 years ago

AramZS commented 11 years ago

No idea why. Will test on other systems as well. Thoughts?

Log report from digitalhumanitiesnow.org:

[08-Jul-2013 22:25:56] Now beginning check and processing for entering items into the database.
[08-Jul-2013 22:25:56] Attempting to add Vote for me for the MLA13 Delegate Assembly! to the database caused this error:
[08-Jul-2013 22:25:56] Could not insert post into the database
[08-Jul-2013 22:25:56] The following post caused the above error.
[08-Jul-2013 22:25:56] Array
(
    [post_status] => publish
    [post_type] => pf_feed_item
    [post_title] => Vote for me for the MLA13 Delegate Assembly!
    [post_content] => <p><a href="http://www.adelinekoh.org/wp-content/uploads/2013/07/votepusheen.gif"><img class=" wp-image-508 alignnone" alt="votepusheen" src="http://www.adelinekoh.org/wp-content/uploads/2013/07/votepusheen-300x300.gif" width="240" height="240" /></a></p>
<p>I&#8217;ve been nominated to run for the position of the Continuing and Distance Education Special Interest Delegate of the MLA Delegate Assembly. My candidate statement is below. If you would like to see the following implemented, please think about voting for me! Much appreciated.</p>
<p><strong>Koh Delegate Candidate Statement</strong></p>
<p dir="ltr">How do recent changes to the landscape of online education affect questions of global access, power and inequality? The widely publicized MOOC (Massively Open Online Courses) movement poses important challenges that the MLA needs to address. If elected, I will work in the MLA delegation to provide strategic guidance on MOOCs, and the ways in which they can be used to enhance and improve&#8211;rather than replace&#8211;current educational offerings. At the same time, I will bring to the forefront the critical role that liberal arts institutions and community colleges should play in this reshaping of higher education, as pedagogy has always been the center of their institutional missions.</p>
<p dir="ltr">My scholarly and online trajectory has been dedicated to exploring the ways in which the online environment can be used to address issues of global inequality in relation to race, class, gender and disability. This has ranged from my organization of the <a href="http://dhpoco.org/rewriting-wikipedia/the-global-women-wikipedia-write-in/">Rewriting Wikipedia Project</a>, an effort to reshape Wikipedia content from global and minority perspectives; a fully open, free and open access <a href="http://dhpoco.org/summerschool/">Postcolonial Digital Humanities Summer School in 2013</a> to engage the academic community in questions of global race, class and gender in the digital humanities; and my spearheading of an open Digital Humanities Liberal Arts Virtual Consortium, which will launch in Fall 2013. If elected, I will bring the same emphasis on challenging global inequality to the MLA agenda on higher education.</p>
<p><a href="http://icanhas.cheezburger.com/tag/voting">Image Credit: I Can Has CheezBurger </a></p></img>
)

[08-Jul-2013 22:25:56] Post will not go into the database. We will try again.
[08-Jul-2013 22:25:56] String run through specified str_replace.
[08-Jul-2013 22:25:56] String run through utf8_encode
[08-Jul-2013 22:25:56] String returned.
[08-Jul-2013 22:25:56] String run through specified str_replace.
[08-Jul-2013 22:25:56] String run through utf8_encode
[08-Jul-2013 22:25:56] String returned.
[08-Jul-2013 22:25:56] Attempting to add Vote for me for the MLA13 Delegate Assembly! to the database caused this error:
[08-Jul-2013 22:25:56] Could not insert post into the database
[08-Jul-2013 22:25:56] The following post caused the above error.
[08-Jul-2013 22:25:56] Array
(
    [post_status] => publish
    [post_type] => pf_feed_item
    [post_title] => Vote for me for the MLA13 Delegate Assembly!
    [post_content] => <p>I&ve been nominated to run for the position of the Continuing and Distance Education Special Interest Delegate of the MLA Delegate Assembly. My candidate statement is below. If you would like to see the following implemented, please think about voting for me! Much appreciated.<br />
Koh Delegate Candidate Statement<br />
How do recent changes to the landscape of online education affect questions of global access, power and inequality? The widely publicized MOOC (Massively Open Online Courses) movement poses important challenges that the MLA needs to address. If elected, I will work in the MLA delegation to provide strategic guidance on MOOCs, and the ways in which they can be used to enhance and improve&#8211;rather than replace&#8211;current educational offerings. At the same time, I will bring to the forefront the critical role that liberal arts institutions and community colleges should play in this reshaping of higher education, as pedagogy has always been the center of their institutional missions.<br />
My scholarly and online trajectory has been dedicated to exploring the ways in which the online environment can be used to address issues of global inequality in relation to race, class, gender and disability. This has ranged from my organization of the Rewriting Wikipedia Project, an effort to reshape Wikipedia content from global and minority perspectives; a fully open, free and open access Postcolonial Digital Humanities Summer School in 2013&nbsp;to engage the academic community in questions of global race, class and gender in the digital humanities; and my spearheading of an open Digital Humanities Liberal Arts Virtual Consortium, which will launch in Fall 2013. If elected, I will bring the same emphasis on challenging global inequality to the MLA agenda on higher education.<br />
Image Credit: I Can Has CheezBurger&nbsp;</p>

)

[08-Jul-2013 22:25:56] End of wp_insert_post process.
[08-Jul-2013 22:25:56] Attempting to add What would a SLAC DH Consortium Look Like? to the database caused this error:
[08-Jul-2013 22:25:56] Could not insert post into the database
[08-Jul-2013 22:25:56] The following post caused the above error.
[08-Jul-2013 22:25:56] Array
(
    [post_status] => publish
    [post_type] => pf_feed_item
    [post_title] => What would a SLAC DH Consortium Look Like?
    [post_content] => <p><a href="http://livelearnleavealegacy.blogspot.com/2013/04/4913.html"><img class="alignleft" alt="teamwork kids" src="http://penn2013.phillydh.org/wp-content/uploads/sites/2/2013/06/teamwork-kids-242x300.jpg" width="145" height="180" /></a></p>
<p>The following was my proposal for the <a href="http://penn2013.phillydh.org/">PhillyDH at Penn</a> conference in June 2013, and is <a href="http://penn2013.phillydh.org/2013/06/03/what-would-a-slac-dh-consortium-look-like/">cross-posted on their website</a>. Here is a link to the <a href="http://penn2013.phillydh.org/">shared public Google doc for notes on that session</a>.</p>
<p>I&#8217;d like to propose a workshop for brainstorming what a small liberal arts Digital Humanities Consortium would look like.<a href="http://tdh.brynmawr.edu/"> Tri-Co Digital Humanities, hosted at Bryn Mawr, Swarthmore and Haverford</a>, is a great example. I want to extend this model to include small non-elite private colleges and places that focus generally on undergraduate education.</p>
<p>Issues we could talk about include:</p>

What levels of interest in the digital humanities are there in our institutions?
How is DH in our institutions different from DH as practiced at R1s, and what challenges do we face? How can we overcome these challenges together?
How could we share resources and support?
What would be the best way to start a collaborative framework?
Are there opportunities for teaching across institutions? Would people be interested in contributing to multi-institutional projects?
What are some best practices for working across different SLACs?
How do we identify possible collaborators across institutions?

<p><a href="http://livelearnleavealegacy.blogspot.com/2013/04/4913.html">Image Credit</a></p></img>
)

[08-Jul-2013 22:25:56] Post will not go into the database. We will try again.
[08-Jul-2013 22:25:56] String run through specified str_replace.
[08-Jul-2013 22:25:56] String run through utf8_encode
[08-Jul-2013 22:25:56] String returned.
[08-Jul-2013 22:25:56] String run through specified str_replace.
[08-Jul-2013 22:25:56] String run through utf8_encode
[08-Jul-2013 22:25:56] String returned.
[08-Jul-2013 22:25:56] Attempting to add What would a SLAC DH Consortium Look Like? to the database caused this error:
[08-Jul-2013 22:25:56] Could not insert post into the database
[08-Jul-2013 22:25:56] The following post caused the above error.
[08-Jul-2013 22:25:56] Array
(
    [post_status] => publish
    [post_type] => pf_feed_item
    [post_title] => What would a SLAC DH Consortium Look Like?
    [post_content] => <p>The following was my proposal for the PhillyDH at Penn conference in June 2013, and is cross-posted on their website. Here is a link to the shared public Google doc for notes on that session.<br />
I&d like to propose a workshop for brainstorming what a small liberal arts Digital Humanities Consortium would look like. Tri-Co Digital Humanities, hosted at&nbsp;Bryn Mawr, Swarthmore and Haverford, is a great example. I want to extend this model to include small non-elite private colleges and places that focus generally on undergraduate education.<br />
Issues we could talk about include:</p>
<p>What levels of interest in the digital humanities are there in our institutions?<br />
How is DH in our institutions different from DH as practiced at R1s, and what challenges do we face? How can we overcome these challenges together?<br />
How could we share resources and support?<br />
What would be the best way to start a collaborative framework?<br />
Are there opportunities for teaching across institutions? Would people be interested in contributing to multi-institutional projects?<br />
What are some best practices for working across different SLACs?<br />
How do we identify possible collaborators across institutions?</p>
<p>Image Credit</p>

)

[08-Jul-2013 22:25:56] End of wp_insert_post process.
[08-Jul-2013 22:25:56] Attempting to add Postcolonial DH/DH Related Panels at #MLA14 to the database caused this error:
[08-Jul-2013 22:25:56] Could not insert post into the database
[08-Jul-2013 22:25:56] The following post caused the above error.
[08-Jul-2013 22:25:56] Array
(
    [post_status] => publish
    [post_type] => pf_feed_item
    [post_title] => Postcolonial DH/DH Related Panels at #MLA14
    [post_content] => <p>Excited to be part of #MLA14, and by all the great topics I&#8217;m seeing. I started a collective google doc to publicize all panels related to the digital humanities, postcolonial, race, gender, ethnic, queer and disability studies at MLA14. Please add to the document&nbsp;<a href="https://docs.google.com/document/d/13IMUU407qmuoBpSnPkXmMt9pcL7-97rE5Ru196AW_Dk/edit?usp=sharing">here.</a>.</p>
<p></p>
)

[08-Jul-2013 22:25:56] Post will not go into the database. We will try again.
[08-Jul-2013 22:25:56] String run through specified str_replace.
[08-Jul-2013 22:25:56] String run through utf8_encode
[08-Jul-2013 22:25:56] String returned.
[08-Jul-2013 22:25:56] String run through specified str_replace.
[08-Jul-2013 22:25:56] String run through utf8_encode
[08-Jul-2013 22:25:56] String returned.
[08-Jul-2013 22:25:56] Attempting to add Postcolonial DH/DH Related Panels at #MLA14 to the database caused this error:
[08-Jul-2013 22:25:56] Could not insert post into the database
[08-Jul-2013 22:25:56] The following post caused the above error.
[08-Jul-2013 22:25:56] Array
(
    [post_status] => publish
    [post_type] => pf_feed_item
    [post_title] => Postcolonial DH/DH Related Panels at #MLA14
    [post_content] => <p>Excited to be part of #MLA14, and by all the great topics I&m seeing. I started a collective google doc to publicize all panels related to the digital humanities, postcolonial, race, gender, ethnic, queer and disability studies at MLA14. Please add to the documenthere..</p>

)

[08-Jul-2013 22:25:56] End of wp_insert_post process.
[08-Jul-2013 22:25:56] Begin advance_feeds.
boonebgorges commented 11 years ago

Looks like your logger is not recording the contents of the error message. Maybe at line 541 https://github.com/PressForward/pressforward/blob/2.1.x/includes/feed-items.php#L539 you could try doing this instead:

pf_log( $postAttempt->get_error_message() );

Might give enough info to debug further.

On 07/08/13 21:25, Aram Zucker-Scharff wrote:

No idea why. Will test on other systems as well. Thoughts?

Log report from digitalhumanitiesnow.org:

' [08-Jul-2013 22:25:56] Now beginning check and processing for entering items into the database. [08-Jul-2013 22:25:56] Attempting to add Vote for me for the MLA13 Delegate Assembly! to the database caused this error: [08-Jul-2013 22:25:56] Could not insert post into the database [08-Jul-2013 22:25:56] The following post caused the above error. [08-Jul-2013 22:25:56] Array ( [post_status] => publish [post_type] => pf_feed_item [post_title] => Vote for me for the MLA13 Delegate Assembly! [post_content] =>

votepusheen http://www.adelinekoh.org/wp-content/uploads/2013/07/votepusheen.gif

I’ve been nominated to run for the position of the Continuing and Distance Education Special Interest Delegate of the MLA Delegate Assembly. My candidate statement is below. If you would like to see the following implemented, please think about voting for me! Much appreciated.

Koh Delegate Candidate Statement

How do recent changes to the landscape of online education affect questions of global access, power and inequality? The widely publicized MOOC (Massively Open Online Courses) movement poses important challenges that the MLA needs to address. If elected, I will work in the MLA delegation to provide strategic guidance on MOOCs, and the ways in which they can be used to enhance and improve–rather than replace–current educational offerings. At the same time, I will bring to the forefront the critical role that liberal arts institutions and community colleges should play in this reshaping of higher education, as pedagogy has always been the center of their institutional missions.

My scholarly and online trajectory has been dedicated to exploring the ways in which the online environment can be used to address issues of global inequality in relation to race, class, gender and disability. This has ranged from my organization of the Rewriting Wikipedia Project http://dhpoco.org/rewriting-wikipedia/the-global-women-wikipedia-write-in/, an effort to reshape Wikipedia content from global and minority perspectives; a fully open, free and open access Postcolonial Digital Humanities Summer School in 2013 http://dhpoco.org/summerschool/ to engage the academic community in questions of global race, class and gender in the digital humanities; and my spearheading of an open Digital Humanities Liberal Arts Virtual Consortium, which will launch in Fall

  1. If elected, I will bring the same emphasis on challenging global inequality to the MLA agenda on higher education.

Image Credit: I Can Has CheezBurger http://icanhas.cheezburger.com/tag/voting

) [08-Jul-2013 22:25:56] Post will not go into the database. We will try again. [08-Jul-2013 22:25:56] String run through specified str_replace. [08-Jul-2013 22:25:56] String run through utf8_encode [08-Jul-2013 22:25:56] String returned. [08-Jul-2013 22:25:56] String run through specified str_replace. [08-Jul-2013 22:25:56] String run through utf8_encode [08-Jul-2013 22:25:56] String returned. [08-Jul-2013 22:25:56] Attempting to add Vote for me for the MLA13 Delegate Assembly! to the database caused this error: [08-Jul-2013 22:25:56] Could not insert post into the database [08-Jul-2013 22:25:56] The following post caused the above error. [08-Jul-2013 22:25:56] Array ( [post_status] => publish [post_type] => pf_feed_item [post_title] => Vote for me for the MLA13 Delegate Assembly! [post_content] =>

I&ve been nominated to run for the position of the Continuing and Distance Education Special Interest Delegate of the MLA Delegate Assembly. My candidate statement is below. If you would like to see the following implemented, please think about voting for me! Much appreciated. Koh Delegate Candidate Statement How do recent changes to the landscape of online education affect questions of global access, power and inequality? The widely publicized MOOC (Massively Open Online Courses) movement poses important challenges that the MLA needs to address. If elected, I will work in the MLA delegation to provide strategic guidance on MOOCs, and the ways in which they can be used to enhance and improve–rather than replace–current educational offerings. At the same time, I will bring to the forefront the critical role that liberal arts institutions and community colleges should play in this reshaping of higher education, as pedagogy has always been the center of their institutional missions. My scholarly and online trajectory has been dedicated to exploring the ways in which the online environment can be used to address issues of global inequality in relation to race, class, gender and disability. This has ranged from my organization of the Rewriting Wikipedia Project, an effort to reshape Wikipedia content from global and minority perspectives; a fully open, free and open access Postcolonial Digital Humanities Summer School in 2013 to engage the academic community in questions of global race, class and gender in the digital humanities; and my spearheading of an open Digital Humanities Liberal Arts Virtual Consortium, which will launch in Fall 2013. If elected, I will bring the same emphasis on challenging global inequality to the MLA agenda on higher education. Image Credit: I Can Has CheezBurger

)

[08-Jul-2013 22:25:56] End of wp_insert_post process. [08-Jul-2013 22:25:56] Attempting to add What would a SLAC DH Consortium Look Like? to the database caused this error: [08-Jul-2013 22:25:56] Could not insert post into the database [08-Jul-2013 22:25:56] The following post caused the above error. [08-Jul-2013 22:25:56] Array ( [post_status] => publish [post_type] => pf_feed_item [post_title] => What would a SLAC DH Consortium Look Like? [post_content] =>

teamwork kids http://livelearnleavealegacy.blogspot.com/2013/04/4913.html

The following was my proposal for the PhillyDH at Penn http://penn2013.phillydh.org/ conference in June 2013, and is cross-posted on their website http://penn2013.phillydh.org/2013/06/03/what-would-a-slac-dh-consortium-look-like/. Here is a link to the shared public Google doc for notes on that session http://penn2013.phillydh.org/.

I’d like to propose a workshop for brainstorming what a small liberal arts Digital Humanities Consortium would look like.Tri-Co Digital Humanities, hosted at Bryn Mawr, Swarthmore and Haverford http://tdh.brynmawr.edu/, is a great example. I want to extend this model to include small non-elite private colleges and places that focus generally on undergraduate education.

Issues we could talk about include:

What levels of interest in the digital humanities are there in our institutions? How is DH in our institutions different from DH as practiced at R1s, and what challenges do we face? How can we overcome these challenges together? How could we share resources and support? What would be the best way to start a collaborative framework? Are there opportunities for teaching across institutions? Would people be interested in contributing to multi-institutional projects? What are some best practices for working across different SLACs? How do we identify possible collaborators across institutions?

Image Credit http://livelearnleavealegacy.blogspot.com/2013/04/4913.html

) [08-Jul-2013 22:25:56] Post will not go into the database. We will try again. [08-Jul-2013 22:25:56] String run through specified str_replace. [08-Jul-2013 22:25:56] String run through utf8_encode [08-Jul-2013 22:25:56] String returned. [08-Jul-2013 22:25:56] String run through specified str_replace. [08-Jul-2013 22:25:56] String run through utf8_encode [08-Jul-2013 22:25:56] String returned. [08-Jul-2013 22:25:56] Attempting to add What would a SLAC DH Consortium Look Like? to the database caused this error: [08-Jul-2013 22:25:56] Could not insert post into the database [08-Jul-2013 22:25:56] The following post caused the above error. [08-Jul-2013 22:25:56] Array ( [post_status] => publish [post_type] => pf_feed_item [post_title] => What would a SLAC DH Consortium Look Like? [post_content] =>

The following was my proposal for the PhillyDH at Penn conference in June 2013, and is cross-posted on their website. Here is a link to the shared public Google doc for notes on that session. I&d like to propose a workshop for brainstorming what a small liberal arts Digital Humanities Consortium would look like. Tri-Co Digital Humanities, hosted at Bryn Mawr, Swarthmore and Haverford, is a great example. I want to extend this model to include small non-elite private colleges and places that focus generally on undergraduate education. Issues we could talk about include:

What levels of interest in the digital humanities are there in our institutions? How is DH in our institutions different from DH as practiced at R1s, and what challenges do we face? How can we overcome these challenges together? How could we share resources and support? What would be the best way to start a collaborative framework? Are there opportunities for teaching across institutions? Would people be interested in contributing to multi-institutional projects? What are some best practices for working across different SLACs? How do we identify possible collaborators across institutions?

Image Credit

)

[08-Jul-2013 22:25:56] End of wp_insert_post process. [08-Jul-2013 22:25:56] Attempting to add Postcolonial DH/DH Related Panels at #MLA14 to the database caused this error: [08-Jul-2013 22:25:56] Could not insert post into the database [08-Jul-2013 22:25:56] The following post caused the above error. [08-Jul-2013 22:25:56] Array ( [post_status] => publish [post_type] => pf_feed_item [post_title] => Postcolonial DH/DH Related Panels at #MLA14 [post_content] =>

Excited to be part of #MLA14, and by all the great topics I’m seeing. I started a collective google doc to publicize all panels related to the digital humanities, postcolonial, race, gender, ethnic, queer and disability studies at MLA14. Please add to the document here. https://docs.google.com/document/d/13IMUU407qmuoBpSnPkXmMt9pcL7-97rE5Ru196AW_Dk/edit?usp=sharing.

)

[08-Jul-2013 22:25:56] Post will not go into the database. We will try again. [08-Jul-2013 22:25:56] String run through specified str_replace. [08-Jul-2013 22:25:56] String run through utf8_encode [08-Jul-2013 22:25:56] String returned. [08-Jul-2013 22:25:56] String run through specified str_replace. [08-Jul-2013 22:25:56] String run through utf8_encode [08-Jul-2013 22:25:56] String returned. [08-Jul-2013 22:25:56] Attempting to add Postcolonial DH/DH Related Panels at #MLA14 to the database caused this error: [08-Jul-2013 22:25:56] Could not insert post into the database [08-Jul-2013 22:25:56] The following post caused the above error. [08-Jul-2013 22:25:56] Array ( [post_status] => publish [post_type] => pf_feed_item [post_title] => Postcolonial DH/DH Related Panels at #MLA14 [post_content] =>

Excited to be part of #MLA14, and by all the great topics I&m seeing. I started a collective google doc to publicize all panels related to the digital humanities, postcolonial, race, gender, ethnic, queer and disability studies at MLA14. Please add to the documenthere..

)

[08-Jul-2013 22:25:56] End of wp_insert_post process. [08-Jul-2013 22:25:56] Begin advance_feeds. '

— Reply to this email directly or view it on GitHub https://github.com/PressForward/pressforward/issues/120.

AramZS commented 11 years ago

Just passing it to pf_log should be enough, I have it set up to call the error at - https://github.com/PressForward/pressforward/blob/2.1.x/includes/functions.php#L589

It returns the rather useless "Could not insert post into the database".

boonebgorges commented 11 years ago

Right, my bad.

Do you think it could be some sort of character encoding issue? Does PF's sanitization process attempt to put everything into one encoding schema before inserting?

AramZS commented 11 years ago

If it fails the initial insertion process, it runs it through a maximum sanitization process to strip everything out and try again. It looks like it fails even after that.

Right, my bad.

Do you think it could be some sort of character encoding issue? Does PF's sanitization process attempt to put everything into one encoding schema before inserting?

— Reply to this email directly or view it on GitHubhttps://github.com/PressForward/pressforward/issues/120#issuecomment-20832700 .

AramZS commented 10 years ago

Edge case, labelled, added to a list to maintain in the wiki. https://github.com/PressForward/pressforward/wiki/Broken-feeds

Removing from the milestone for now.

AramZS commented 10 years ago

Marking as #wontfix. Will combine broken feeds into a more focused issue to deal with in the future.