• Resolved markobgd2002

    (@markobgd2002)


    Dear all,

    I got this error on my site

    Warning: simplexml_load_file(https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=Wadsak+W&retmax=999): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 83

    Warning: simplexml_load_file(): I/O warning : failed to load external entity “http%3A%2F%2Feutils.ncbi.nlm.nih.gov%2Fentrez%2Feutils%2Fesearch.fcgi%3Fdb%3Dpubmed%26term%3DWadsak%2BW%26retmax%3D999” in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 83

    Warning: Invalid argument supplied for foreach() in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 86

    This work normally on my localhost, but not on hosting.

    Any idea?

    Kr,
    M

    https://www.ads-software.com/plugins/wp-pubmed-reflist/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author jimhu

    (@jimhu)

    I believe the simplexml_load_file functions I use to query pubmed’s web services require that PHP be configured with allow_url_fopen enabled. This may be different on your hosting service vs your localhost. The warning

    It’s possible to use curl instead, and I should try to do that in the next version, or at least give a more informative error message somewhere. I’ll try to fix this, but it would help if you can check that your service has disabled allow_url_fopen, and that it has curl enabled.

    Plugin Author jimhu

    (@jimhu)

    Should be resolved in 1.0, just released

    Thread Starter markobgd2002

    (@markobgd2002)

    hm…

    I updated to 1.0, but still reference is not showed.

    now this error is showed:

    Warning: simplexml_load_file(https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=mitterhauser+m&retmax=20): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 191

    Warning: simplexml_load_file(): I/O warning : failed to load external entity “http%3A%2F%2Feutils.ncbi.nlm.nih.gov%2Fentrez%2Feutils%2Fesearch.fcgi%3Fdb%3Dpubmed%26term%3Dmitterhauser%2Bm%26retmax%3D20” in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 191

    Kr,
    M

    Plugin Author jimhu

    (@jimhu)

    hmm indeed.

    I’m wondering if there is something different about how simplexml_load_file is handling the encoded url on the hosted system vs your localhost (and my test systems). Can you try the following? Assuming you can edit the files

    1. Go into class.wpPubMedRefList.php and comment out line 190. That’s the line that encodes the URL
    2. Alternatively, force it to use curl by putting $this->remote_method='curl' ; above line 188 (the switch statement)

    and let me know what happens.

    What is weird to me is that the error you are getting is 403 forbidden. If I take the url and put it in my browser, it works. Is it possible that your host is blacklisted at NCBI? Grasping at straws here.

    Plugin Author jimhu

    (@jimhu)

    I’ve sent an email to NCBI to see if I can modify the plugin to make sure there’s not a block on that end.

    Plugin Author jimhu

    (@jimhu)

    I got a reply from NCBI. The relevant part is:

    3. 403 error. To maintain service availability to general public, we do block abusive usages. If that happens, the best way to make sure a site is blocked is to try to load https://www.ncbi.nlm.nih.gov/pubmed/ to see if one gets the black background misuse screen. The user need to submit the time, IP from that page to [email protected] so our system staff can look into the issue.

    I’m not sure exactly how you’ll be able to run that test on your hosting service, but perhaps you should contact NCBI directly at [email protected]

    I’m guessing that if there is a block, it’s because you are sharing an IP with something that misused the EUtils, perhaps by overloading the queries. WP PubMed Reflist shouldn’t do that, since it caches the results of the searches and only updates once per day.

    Thread Starter markobgd2002

    (@markobgd2002)

    good morning! ??

    Once I’ve edited lines 190 and 188 as you suggested, I got this as error:

    Warning: simplexml_load_string(): Entity: line 109: parser error : Opening and ending tag mismatch: meta line 3 and head in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): </head><body id=ERR_ACCESS_DENIED> in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): Entity: line 109: parser error : AttValue: ” or ‘ expected in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): </head><body id=ERR_ACCESS_DENIED> in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): Entity: line 109: parser error : attributes construct error in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): </head><body id=ERR_ACCESS_DENIED> in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): Entity: line 109: parser error : Couldn’t find end of Start Tag body line 109 in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): </head><body id=ERR_ACCESS_DENIED> in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): Entity: line 127: parser error : Opening and ending tag mismatch: br line 126 and div in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): </div> in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): Entity: line 134: parser error : Opening and ending tag mismatch: hr line 129 and body in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): </body></html> in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): Entity: line 134: parser error : Opening and ending tag mismatch: div line 116 and html in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): </body></html> in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): Entity: line 135: parser error : Premature end of data in tag hr line 114 in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): Entity: line 135: parser error : Premature end of data in tag head line 2 in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): Entity: line 135: parser error : Premature end of data in tag html line 2 in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    Warning: simplexml_load_string(): ^ in /home/.sites/596/site1210/web/wp/wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 199

    I will check with my hosting to see my phpini settings (allow_url_fopen) and if it is open, then I’ll contact ncbi.nlm.nih.gov

    Kr,
    M

    Thread Starter markobgd2002

    (@markobgd2002)

    Just got this from techsupport:

    Hello Marko,

    allow_url_fopen is indeed enabled, but possibly you are trying to access a remote URL that is blocked by our firewall. Can you please tell me which remote URL you are trying to access, so I can enable it?

    I sent them the domain and ask them to enable everything, so lets wait and we will see.

    Kr,
    M

    Thread Starter markobgd2002

    (@markobgd2002)

    finally!

    It was blocked by firewall!!

    Now it work normally! ??

    Thank you on support!

    Kr,
    M

    Plugin Author jimhu

    (@jimhu)

    Glad to hear it’s working now. Wonder why they would have ncbi blocked by their firewall.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘help!’ is closed to new replies.