Today, I started receiving this error for, what I can tell, no reason. This isn't a consistent error. It randomly started today. It was working perfectly yesterday, and for weeks without any error.
All I have in the file is file_get_contents().
I've been using the same code for get_image.php for a while and I have never received this error until now.
Does anyone know why this would be happening randomly and not consistently?
[20/Feb/2015:10:53:53 -0800] "POST /get_image HTTP/1.1" 200 149 - - "website.com" ms=296 cpu_ms=86 cpm_usd=0.000017 pending_ms=160 instance=<string> app_engine_release=1.9.18
W 13:53:53.815 PHP Warning: Cloud Storage Error: UNAUTHORIZED in /base/data/home/runtimes/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageReadClient.php on line 310
W 13:53:53.815 PHP Warning: file_get_contents(gs://bucket/image/page_1.png): failed to open stream: "\google\appengine\ext\cloud_storage_streams\CloudStorageStreamWrapper::stream_open" call failed in /base/data/home/apps/..../get_image.php on line 10
EDIT: For anyone looking for updates to this issue, go to this bug report.
Add this to your code as a temporary fix for the time being as per Stuart Langley's post.
apc_delete('_ah_app_identity_:https://www.googleapis.com/auth/devstorage.read_only');
apc_delete('_ah_app_identity_:https://www.googleapis.com/auth/devstorage.read_write');
According to Stuart, the bug has been fixed. You shouldn't randomly receive this error anymore for no reason.
Related
I'm running a wordpress/woocommerce website running PHP7 on Windows IIS.
After clicking update plugins, I now get the following error when trying to do anything in the WP dashboard (the actual website still works fine, just not when logged in to WordPress):
Fatal error: require_once(): Failed opening required 'C:\inetpub(dir removed)\wordpress\wp-content\plugins\code-snippets/php/admin-menus/class-manage-menu.php' (include_path='.;C:\php\pear') in C:\inetpub(dir removed)\wordpress\wp-content\plugins\code-snippets\code-snippets.php on line 75
Line 75 of the code snippets file is:
/* Load the class */
require_once $class_path . "class-{$class_file}.php";
I tried the recovery email, but just got the message:
Recovery Mode not initialized.
I can't see that may be wrong - any ideas of next steps to try?
Thanks, Mark
I don't know why - but now the site appears to be working. It's as if WP "fixed itself" after a period of time (approx 30 minutes).
So if you get this error - try leaving it for a little while and see if it resolves itself. If anyone knows why/how it can do this, please say. Thanks, Mark
I checked the server log recently, there are so many error types.
1 . AH00126: Invalid URI in request GET /../../terms HTTP/1.1 .
This kind of error is the most common one, our website is on Wordpress. This page is on www.MYSITENAME.com/terms. I check most of the pages, and checked the links, all of them did not cause this invalid Request.
But if I use postman, type the URL directly, like: www.MYSITENAME.com/../terms, this would cause the error and also it would be catched and logged.
Any idea about this error? I search it on google, someone said it is the problem from the .htaccess file, but I dont really understand it.
2. PHP Warning: mysqli_query(): (00000/0): in /var/www/www.MYSITENAME.com/public_html/wp-includes/wp-db.php on line 2007
I have no idea about this one.
3. PHP Fatal error: Out of memory (allocated 20971520) (tried to allocate 77824 bytes)
4. PHP Warning: Error while sending QUERY packet. PID=22936 in /var/www/www.MYSITENAME.com/public_html/wp-includes/wp-db.php on line 2007
5. PHP Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /var/www/www.MYSITENAME.com/public_html/wp-content/plugins/wp-cerber/common.php on line 1968
6. PHP Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /var/www/www.MYSITENAME.com/public_html/wp-content/plugins/wp-cerber/common.php on line 2017
Any idea about Any error?
Thanks.
For the first error:[ AH00126: Invalid URI in request GET /../../terms HTTP/1.1 .], I found out where was going wrong. On my site, sitting on wordpress and also editting from wordpress, we used the relative URL before. Now we fix it to the absolute one.
I have searched for some relevant questions, someone said this kind of problem is caused by crawler program, but others said .htaccess leads the problem. But I do recommend just go through your own code about the URL parts first
Yesterday I noticed a strange issue with my WordPress website. An uptime monitor reported a 500 error. The logs contained the following error:
PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/domain.tld/httpdocs/wp-admin/includes/plugin-php' (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/wp-security-audit-log/sdk/freemius/start.php on line 169
Indeed, the file wp-admin/includes/plugin-php does not exist. But the strange thing is that line 169 from that file does not contain plugin-php at all. Line 169 from wp-content/plugins/wp-security-audit-log/sdk/freemius/start.php:
require_once ABSPATH . 'wp-admin/includes/plugin.php';
The uptime monitor noticed the 500 status at 14:52 and reported the website to be back online at 14:58. The error log confirms this is the only time window where this error was reported. start.php file has not been edited since installation fo the plugin at June 15th, which is also the last modified datetime in the FTP.
I've never seen this happening before. What can possibly cause this to happen?
I'm in the middle of some work and suddenly I get this.
Warning: require(/opt/lampp/htdocs/ERP/laravel/÷5 ication)
[function.require]: failed to open stream: No such file or directory
in /opt/lampp/htdocs/ERP/public/index.php on line 34
Fatal error: require() [function.require]: Failed opening required
'/opt/lampp/htdocs/ERP/laravel/÷5 ication'
(include_path='.:/opt/lampp/lib/php') in
/opt/lampp/htdocs/ERP/public/index.php on line 34
This error is shown on some requests that have no relation, so there is not a problem with them. This problem started showing a few hours ago
I have checked the files mentioned on the message and they are OK, based on the download I just made to make sure.
If I keep refreshing the page the file name changes. If I insist, it will end up loading my page. This process is costing me a lot of time, I'm trying to make some tests and sometimes this message shows up.
Well...you said that it happens in same pages that make requests, take a good look on your requests and try looking for something wrong.
A good tip is to use the Profile on your framework configuration. You will have a bottom bar with details about the queries executed and logs created.
I think that will help you find the problem.
I am currently developing a site with codeigniter that uses paypal standard payments. When a payment is made paypal sends the information back to the site using an IPN notification and returns the user to the site along with the info as a PDT. I use both because I am giving digital downloads.
Both PDT and IPN verify that the information they have been sent really came from paypal by sending it back to paypal. If paypal recognises that it is a real transaction it returns verified.
Things all work fine in the sandbox but now that I have switched paypal to live it has stopped working. I have check for all the usual culprits, such as still pointing to the sandbox.
When paypal forwards me back to the success page on my site. I see the following error, the IPN also fails with an INVALID response.
PHP Warning: require(../system/libraries/Exceptions.php) [function.require]: failed to open stream: No such file or directory in C:\Domains\mydomain.com\system\codeigniter\Common.php on line 116
PHP Warning: require(../system/libraries/Exceptions.php) [function.require]: failed to open stream: No such file or directory in C:\Domains\ mydomain.com\system\codeigniter\Common.php on line 116
PHP Fatal error: require() [function.require]: Failed opening required ‘../system/libraries/Exceptions.php’ (include_path=’.;C:\PHP5\pear’) in C:\Domains\mydomain.com\system\codeigniter\Common.php on line 116
The strange thing is that when I refresh the page I don’t get the error and the PDT information is verified and displayed as expected. I see the same error even with a die() statement on the first line of code in my success controller function, when refreshed the die() output is shown instead of the error.
I am using $config[‘uri_protocol’] = “PATH_INFO”; $config[‘enable_query_strings’] = TRUE;
as suggested here to allow query strings and segments.
http://codeigniter.com/forums/viewthread/99570/
I am using IIS and Pear appears to be installed.
I have the application folder at the same level as the system folder.
Does anybody have any ideas why this is happening.
Any help or insights would be much appreciated.
Thanks
Does changing the value of $config[‘uri_protocol’] to REQUEST_URI help?