bruzona
Forum Replies Created
-
We are also finding that white listing function does not appear to be working for the URL traffic inspector. This includes both REGEXP and/or specific URI’s being entered.
Well, installed on Ubuntu 14.04 (newest wordpress, newest plugin v.1.9
Edited code with same trap.
Exact same error. (Can’t blame Centos)Seems more of a PHP/dependency issue. Possible fixes modding php.ini or maybe switching to suPHP
Darn. Ubuntu has its own set of problems with wordpress.
Seems so, but . . .
1. disabled centos selinux completely, and 2. 777 wordpress and belowDo you have access to a centos 7 server for development/testing?
Error:
Error on attached file “IP”:
Extract query file path/url invalid or not availableThis was an open-documents spreadsheet. (ods format). Was not even in media library – (was under wp document revisions plugin), which was deactivated at the time.)
I deleted the above post/file.
Then start getting errors from documents actually within the media library:For example:
(a pdf document in media library)Error on attached file “science”:
Extract query file path/url invalid or not availablecommenting out the throw new exception line from your code restores indexing (exclusive of attachments.)
Replaced code with the above.
Result: no error message, but no indexing either . ..Solr Operations
A total of 0 documents are currently in your index
0 documents were added or updated during the last operationNo error.
However, the trap is blocking indexing altogether (zero documents index)Commenting out the trap allows 12 documents to index again (but not the attachments).
No error, but I had to comment out the trap.
Putting back in as:
$body = str_replace( ‘\n’, ‘ ‘, $body );
} catch ( Exception $e ) {
// $body = ”;
throw new Exception(‘Attachment error on file ‘ . get_the_guid( $post->ID ) . “:
” . $e->getMessage());SHOULD THIS NOW BE RATHER:
get_attached_file( $post->ID ) . “:
” . ?no change in results. I have disabled all other plugins.
12 posts/pages get indexed, but not the attachment.
//$extractQuery->setFile( preg_replace( ‘~^http(s)?://’ . $_SERVER[‘SERVER_NAME’] . ‘~i’, $_SERVER[‘DOCUMENT_ROOT’]$
$extractQuery->setFile( get_attached_file( $post->ID ) );
$extractQuery->setFile( preg_replace( ‘~^http(s)?://’ . $_SERVER[‘SERVER_NAME’] . ‘~i’, $_SERVER[‘DOCUMENT_ROOT’],get_attached_file( $post->ID ) ) );
Where insert (class/line?)
Interesting:
I an open the above link from the above error in a browser and get an actual document
(URL is not externally reachable.)My bad.
After moving trap to correct block get error as followsError:
Attachment error on file https://intranet.mohavecountylibrary.us/?post_type=document&p=4:
Extract query file path/url invalid or not available