I'm using Codeception with Laravel 4. In particular I'm trying to use remote code coverage so that I can include acceptance testing in the code coverage results.
XDebug with remote_enable are configured, and c3.php is installed and included in 'public/index.php'.
On Windows everything works as expected. But on Ubuntu 12.04 LTS (with PHP5.4) I get this exception:
[ErrorException] file_get_contents(http://localhost/c3/report/clear):
failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
What am I doing wrong?
This was easy to fix. There was an error in the path when including c3.php from index.php. The Apache error log made this clear.
Related
I use XAMPP on Windows 10. I installed Magento 2.20 community. My admin URLs are all broken:
Is there another version I should use? I tried to run the commands from this post:
Magento 2 - Links in Admin wont work
In my console, I see these errors:
/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ytheme-magento.css:1 Failed to load resource: net::ERR_CONNECTION_RESET
/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css:1 Failed to load resource: net::ERR_CONNECTION_RESET
require.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 Refused to apply style from 'http://localhost/Magento2/pub/static/version1559572638/adminhtml/Magento/backend/en_US/jquery/jstree/themes/default/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
mixins.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
requirejs-config.js:71 Uncaught TypeError: require is not a function
at requirejs-config.js:71
at requirejs-config.js:78
at requirejs-config.js:416
magento-icon.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
(index):38 Uncaught TypeError: require.config is not a function
at (index):38
(index):87 Uncaught TypeError: require is not a function
at (index):87
(index):295 Uncaught TypeError: require is not a function
at (index):295
(index):428 Uncaught TypeError: require is not a function
at (index):428
(index):473 Uncaught TypeError: require is not a function
at (index):473
(index):514 Uncaught TypeError: require is not a function
at (index):514
(index):537 Uncaught TypeError: require is not a function
at (index):537
(index):560 Uncaught TypeError: require is not a function
at (index):560
admin-icons.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
admin-icons.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
admin-icons.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-700.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-600.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
opensans-400.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
I run Magento 2 on Windows (for development) successfully although I use WAMP. My recipe for setting it up is as follows (I adapted it from another stackexchange Q&A but can't find it). Note my locale is en_GB, replace yours below:
Run grunt clean which will clean several of the folders below quickly (*)
*delete var/cache
*delete var/view_preprocessed
*delete pub/static/* (don't delete the .htaccess)
delete generated/* and not .htaccess
delete var/composer_home
run php bin/magento cache:flush
run php bin/magento setup:static-content:deploy --theme YOUR/theme en_GB [en_GB is essential]
run php bin/magento setup:static-content:deploy --theme Magento/backend en_GB [en_GB is essential]
delete all themes/languages you don't actually use from pub/static/frontend
run php bin/magento dev:source-theme:deploy --locale="en_GB" --theme="YOUR/theme" css/styles-m css/styles-l css/email css/email-inline
grunt commands below need to be run as administrator
Copy a valid dev\tools\grunt\configs\theme.js that contains the theme definition if you’ve done an upgrade (as it gets overwritten)
DO NOT run grunt exec at all
run grunt less:yourtheme (and probably :backend)
Doesn't know whether the following will help you out, Please check.
In your screen shot i can see that you are already in magento/bin path, so here you have to run below command
sudo magento setup:upgrade
And for second command yo are using two php in command.
First Note : Magento2 doesn't support in windows version. But, can run.
If you are installing magento2.2 please make sure you are using php7 or 7x, magento2.2 will not support older versions.
Check your apache2 a2enmode is enabled or not, because it will make issues on redirection.
Check your all files have enough permission to load, for your local you can check with giving full permission for app/etc,var/,pub/static/,generate/*.
Once everything is set try to run the deployment commands with php.
You can avoid sudo if not needed. Or else go to magento root and run the earlier command which you already tried to implement.
Hope this will help you to sort out.
I am adding record via browser in redis cache with predis class it added and no error getting.
When executing from PHPUnit I get the next error:
PHPUnit_Framework_Exception: include_once(Predis\ClientInterface.php): failed to open stream: No such file or directory
However same application, same unit test,same configuration works fine in my colleague's machine.
Hi I am trying to install laravel on my server.This is what I did.First I installed composer and tryed running this command in cmd:
composer create-project laravel/laravel RestPHP
After running it I got this this message:
I tryed googeling about this error but could not find anything concrete regarding this error I am very new to php.
After this I tryed a more manual approach.I downloaded laravel and put it in my htdocs folder , then I tryed openning it like this:
http://localhost:8585/laravel/public/
But I got this message:
Warning: require(E:\Projects
IDE\PHPStorm\xampp\htdocs\laravel\bootstrap/../vendor/autoload.php):
failed to open stream: No such file or directory in E:\Projects
IDE\PHPStorm\xampp\htdocs\laravel\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'E:\Projects
IDE\PHPStorm\xampp\htdocs\laravel\bootstrap/../vendor/autoload.php'
(include_path='.;E:\Projects IDE\PHPStorm\xampp\php\PEAR') in
E:\Projects IDE\PHPStorm\xampp\htdocs\laravel\bootstrap\autoload.php
on line 17
I have my htdocs route at:
E:\Projects IDE\PHPStorm\xampp\htdocs
Both cases seem to be some for of php configuration problem , since I have 0 knowledge of that I could not find a solution.
Could someone please provided me with a step by step solution?
UPDATE
I managed to enable socket transparency ssl and after trying to run the command I get this:
I have also installed git but I still get the same error.What can I do?
Try enabling php_sockets and open_ssl in your php ini
I installed the latest SDK for php 1.8.1 and I am having trouble getting it to run locally
D:\google_appengine 1.8.1>dev_appserver.py --php_executable_path=D:\PHP\php-cgi.exe \Testing --port=5000
INFO 2013-06-13 03:16:30,931 sdk_update_checker.py:244] Checking for updates to the SDK.
INFO 2013-06-13 03:16:32,851 sdk_update_checker.py:260] Update check failed: HTTP Error 404: Not Found
**WARNING 2013-06-13 03:16:32,861 api_server.py:314] Could not initialize images API; you are likely missing the Python "PIL" module.**
INFO 2013-06-13 03:16:32,868 api_server.py:138] Starting API server at: http://localhost:60628
INFO 2013-06-13 03:16:32,874 dispatcher.py:164] Starting server "default" running at: http://localhost:5000
INFO 2013-06-13 03:16:32,878 admin_server.py:117] Starting admin server at: http://localhost:8000
ERROR:root:php failure (255) with:
X-Powered-By: PHP/5.4.16
Content-type: text/html
Warning: require_once(google/appengine/runtime/ApiProxy.php):
failed to open stream: No such file or directory in
D:\google_appengine 1.8.1\google\appengine
\tools\devappserver2\php\setup.php on line 21 INFO
2013-06-13 03:16:40,938 server.py:593] default: "GET / HTTP/1.1" 500 -
Fatal error: require_once(): Failed opening required
'google/appengine/runtime/ApiProxy.php' (include_path='D:\Testing') in
D:\google_appengine 1.8.1\google
\appengine\tools\devappserver2\php\setup.php on line 21
I am trying to find what the problem is but have no idea what is wrong. What is the PIL module I am missing?
The error says that ApiProxy.php is missing but it is located at
D:\google_appengine 1.8.1\php\sdk\google\appengine\runtime
Some one posted a similar issue and said they fixed it by doing the following
The problem is I also have a python version Google-App-engine. In
order to solve this this problem, I need to specify the
"dev_appserver" to PHP-GAE-SDK
I have no idea what that and will it fix the errors shown. Any thoughts?
Google seems to have messed up a little when they made the 1.8.1 revision on Windows. To fix it, go into this file:
D:\google_appengine 1.8.1\google\appengine\tools\devappserver2\php\runtime.py
You should find this at line 112:
if sys.platform == 'win32':
include_path = 'include_path=%s' % ';'.join(include_paths)
Change that to:
if sys.platform == 'win32':
include_path = 'include_path="%s"' % ';'.join(include_paths)
Note the extra pair of quotes around the %s.
There is Neo4J installed on my Ubuntu and I'm running a test code. It's perfectly working when the code runs on terminal such as:
root#ekin-Inspiron-1090:/var/www# php neo.php
home: demolished
name: Arthur Dent
But when it comes to run on browser like localhost/neo.php, it gives fatal error and stops working.
Warning: require(phar://neo4jphp.phar): failed to open stream: operation failed in /var/www/neo.php on line 4 Fatal error: require(): Failed opening required 'phar://neo4jphp.phar' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/neo.php on line 4
I don't think it's really something with Neo4J or its PHP driver. What should be the reason?
edit: by the way, there are two php.ini files; i think one for apache and one for command line. I checked both of them and phar extension paths are the same. Also there are no include_path settings in both of them.
It's an authorization error. Apache runs under its own user, so you need to give apache user to access www folder.