why I can't update database in my server?
This commit work in local server.
Help please, I do not already know where to look
icc-> php app/console doctrine:schema:update
PHP Warning: Uncaught exception 'Symfony\Component\Debug\Exception\ContextErrorException' with message 'Warning: require_once(/home/icc/web/icc.kdpu.edu.ua/public_html): failed to open stream: No such file or directory' in /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php:236
Stack trace:
#0 /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php(236): Symfony\Component\Debug\ErrorHandler->handleError(2, 'require_once(/h...', '/home/icc/web/i...', 236, Array)
#1 /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php(236): Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver::getAllClassNames()
#2 /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php(128): Doctrine\Common\Persistence\Mapping\Driver\Anno in /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php on line 236
PHP Fatal error: Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver::getAllClassNames(): Failed opening required '' (include_path='.:/usr/share/pear:/usr/share/php') in /home/icc/web/icc.kdpu.edu.ua/public_html/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php on line 236
[Symfony\Component\Debug\Exception\FatalErrorException]
Compile Error: Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver:
:getAllClassNames(): Failed opening required '' (include_path='.:/usr/share
/pear:/usr/share/php')
Related
ini_set("include_path", '/home/busaweb/php:' . ini_get("include_path") );
require_once "Mail.php";
include('Mail/mime.php');
Anyone who can explain why these lines serve code?
I have been getting an error message since a few days that these files are missing/not viewable, see error code below:
[01-Aug-2022 18:48:59 UTC] PHP Warning: require_once(Mail.php): Failed to open stream: No such file or directory in /home/vestad/public_html/forms/functions.php on line 4
[01-Aug-2022 18:48:59 UTC] PHP Fatal error: Uncaught Error: Failed opening required 'Mail.php' (include_path='/home/vestad/php:.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/vestad/public_html/forms/functions.php:4
Stack trace:
#0 /home/vestad/public_html/forms/offer_email.php(6): include()
#1 {main}
thrown in /home/vestad/public_html/forms/functions.php on line 4
Is there anyone who can explain what may be causing this suddenly and how to fix it? I use hosting from a cpanel environment.
Thanks in advance!
On the linux(Pop_OS) when I created a new laravel project, I tried to run php artisan and I get the following error:
PHP Warning: require(/home/dusan/freeCodeGram/vendor/autoload.php): Failed to open stream: No such file or directory in /home/dusan/freeCodeGram/artisan on line 18
PHP Fatal error: Uncaught Error: Failed opening required '/home/dusan/freeCodeGram/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/dusan/freeCodeGram/artisan:18
Stack trace:
#0 {main}
thrown in /home/dusan/freeCodeGram/artisan on line 18
I am new to php and laravel and only just starting to learn it, and also note I have installed laravel using composer.
Try this command in your project
composer update --ignore-platform-req=ext-fileinfo
i hope it was useful !
Warning: include(timesb.php): failed to open stream: No such file or directory in /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php on line 1140
Warning: include(): Failed opening 'timesb.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php on line 1140
Fatal error: Uncaught Exception: FPDF error: Could not include font definition file in /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php:271 Stack trace: #0 /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php(1142): FPDF->Error('Could not inclu...') #1 /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php(459): FPDF->_loadfont('timesb.php') #2 /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php(507): FPDF->AddFont('times', 'B') #3 /var/www/html/tn_poly_lateral/candidate-portal/application/application.php(259): FPDF->SetFont('times', 'B', 12) #4 {main} thrown in /var/www/html/tn_poly_lateral/candidate-portal/application/fpdf.php on line 271
This fpdf error shows on production server But when I execute file on locally using xampp everything works fine and pdf is downloading. Anyone help to resolve the problem
depending on your error it appears that there is missing files
timesb.php doesn't exist on your hosting you can check on your hosting search that file if it doesn't exist add it
I'm adding Google Sign-In to my site. I've followed the steps here with no problems, it's only when I authenticate with a backend server that I get an error (500 Internal Server Error).
I'm using the Download the Release instructions and downloading google-api-php-client-2.2.3.zip. I'm not sure if it's relevant but the PHP version installed on the server is PHP Version 5.2.17
Once unzipped, the contents of the file (src,vendor,composer.json,etc) are then all moved to the root folder of my project and uploaded to the server.
HTML is directly copied and pasted from the instructions in order to minimise human error on my end
function onSignIn(googleUser) {
var id_token = googleUser.getAuthResponse().id_token;
// console.log(id_token);
var xhr = new XMLHttpRequest();
xhr.open('POST', 'googleauth.php');
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function() {
console.log('Signed in as: ' + xhr.responseText);
};
xhr.send('idtoken=' + id_token);
var profile = googleUser.getBasicProfile();
sessionStorage.refName = profile.getId();
// console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
// console.log('Name: ' + profile.getName());
// console.log('Image URL: ' + profile.getImageUrl());
// console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
}
function signOut() {
sessionStorage.clear();
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function () {
console.log('User signed out.');
});
}
<?php
require_once 'vendor/autoload.php';
$id_token = $_POST["idtoken"];
echo 'test2';
?>
When I comment out the code in the 'vendor/autoload.php' file and instead only have it return "test1", the require_once successfully performs its function and "Signed in as: test1 test2" is successfully logged to the console.
However when I run the script as originally written by Google I get a 500 (Internal Server Error) and "Signed in as: " is logged to the console.
There are so many files in this api, I'm finding it impossible to navigate. And I'm also finding it hard to believe that Google would release something as important as this in a way that doesn't work straight out of the box.
From my perspective I think that I'm following the instructions verbatim, but does anyone have any suggestions of what they think I might be misinterpreting, or alternatively what I could try differently?
---------------edited to add error log from server (with personal details replaced with $ signs)-----------------------
$$$$$/error_log:
[25-Jul-2019 23:35:39] PHP Warning: require_once(__DIR__/composer/autoload_real.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /$$$$$$$/vendor/autoload.php on line 5
[25-Jul-2019 23:35:39] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '__DIR__/composer/autoload_real.php' (include_path='.:/usr/lib64/php:/usr/share/pear') in /$$$$$$$/vendor/autoload.php on line 5
[26-Jul-2019 01:17:47] PHP Warning: require_once(__DIR__/composer/autoload_real.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /$$$$$$/vendor/autoload.php on line 5
[26-Jul-2019 01:17:47] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '__DIR__/composer/autoload_real.php' (include_path='.:/usr/lib64/php:/usr/share/pear') in /$$$$$/vendor/autoload.php on line 5
[26-Jul-2019 20:05:09] PHP Fatal error: Uncaught exception 'Exception' with message 'This library must be installed via composer or by downloading the full package. See the instructions at https://github.com/google/google-api-php-client#installation.' in /$$$$$/src/Google/autoload.php:14
Stack trace:
#0 /$$$$$/googleauth.php(3): require_once()
#1 {main}
thrown in /$$$$$/src/Google/autoload.php on line 14
[26-Jul-2019 20:05:19] PHP Fatal error: Uncaught exception 'Exception' with message 'This library must be installed via composer or by downloading the full package. See the instructions at https://github.com/google/google-api-php-client#installation.' in /$$$$$/src/Google/autoload.php:14
Stack trace:
#0 /$$$$$/googleauth.php(3): require_once()
#1 {main}
thrown in /$$$$$/src/Google/autoload.php on line 14
[26-Jul-2019 20:18:25] PHP Fatal error: Uncaught exception 'Exception' with message 'This library must be installed via composer or by downloading the full package. See the instructions at https://github.com/google/google-api-php-client#installation.' in /$$$$$/vendor/Google/autoload.php:14
Stack trace:
#0 /$$$$$/googleauth.php(3): require_once()
#1 {main}
thrown in /$$$$$/vendor/Google/autoload.php on line 14
[26-Jul-2019 20:19:09] PHP Fatal error: Uncaught exception 'Exception' with message 'This library must be installed via composer or by downloading the full package. See the instructions at https://github.com/google/google-api-php-client#installation.' in /$$$$$/vendor/Google/autoload.php:14
Stack trace:
#0 /$$$$$/googleauth.php(3): require_once()
#1 {main}
thrown in /$$$$$/vendor/Google/autoload.php on line 14
[26-Jul-2019 20:25:41] PHP Warning: require_once(__DIR__/composer/autoload_real.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /$$$$$/vendor/autoload.php on line 5
[26-Jul-2019 20:25:41] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '__DIR__/composer/autoload_real.php' (include_path='.:/usr/lib64/php:/usr/share/pear') in /$$$$$/vendor/autoload.php on line 5
[26-Jul-2019 20:28:17] PHP Warning: require_once(__DIR__/composer/autoload_real.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /$$$$$/vendor/autoload.php on line 5
[26-Jul-2019 20:28:17] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '__DIR__/composer/autoload_real.php' (include_path='.:/usr/lib64/php:/usr/share/pear') in /$$$$$/vendor/autoload.php on line 5
[26-Jul-2019 22:09:46] PHP Warning: require_once(__DIR__/composer/autoload_real.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /$$$$$/vendor/autoload.php on line 5
[26-Jul-2019 22:09:46] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '__DIR__/composer/autoload_real.php' (include_path='.:/usr/lib64/php:/usr/share/pear') in /$$$$$/vendor/autoload.php on line 5
/$$$$$/vendor/Google/error_log:
[26-Jul-2019 20:22:48] PHP Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /$$$$/vendor/Google/Client.php on line 18
I re-read the API notes and it turns out that the PHP version does matter...
"REQUIREMENTS: PHP 5.4.0 or higher"
I've updated the version used on the server and am no longer receiving any errors
I'm trying to run Laravel 5.5 tinker but get an exception when i try to run the factory Command. For example:
factory(App\Article::class, 100)->create();
When i try to run lets say the User:class command in another repository it works without any problems.
PHP error: Class 'Psy\Exception\ErrorException' not found in /Users/sebastian/Development/app.manager/vendor/psy/psysh/src/Psy/Shell.php on line 812
Extended Error-Message:
PHP warning: opendir(/Users/sebastian/Development/app.manager/database/factories): failed to open dir: Too many open files in /Users/sebastian/Development/app.manager/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 145
PHP Warning: Uncaught Psy\Exception\ErrorException: PHP warning: require(/Users/sebastian/Development/app.manager/database/factories/ArticleFactory.php): failed to open stream: Too many open files in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php on line 202 in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php:202
Stack trace:
#0 /Users/sebastian/Development/app.manager/vendor/psy/psysh/src/Psy/Shell.php(809): Psy\Exception\ErrorException::throwException(2, 'require(/Users/...', '/Users/sebastia...', 202)
#1 /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php(202): Psy\Shell->handleError(2, 'require(/Users/...', '/Users/sebastia...', 202, Array)
#2 /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php(202): require()
#3 /Users/sebastian/Development/app.manager/vendor/laravel/framework in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php on line 202
PHP Fatal error: Illuminate\Database\Eloquent\Factory::load(): Failed opening required '/Users/sebastian/Development/app.manager/database/factories/ArticleFactory.php' (include_path='.:') in /Users/sebastian/Development/app.manager/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php on line 202
PHP Fatal error: Uncaught Psy\Exception\ErrorException: PHP warning: include(/Users/sebastian/Development/app.manager/vendor/symfony/debug/Exception/FatalErrorException.php): failed to open stream: Too many open files in /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php on line 444 in /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php:444
Stack trace:
#0 /Users/sebastian/Development/app.manager/vendor/psy/psysh/src/Psy/Shell.php(809): Psy\Exception\ErrorException::throwException(2, 'include(/Users/...', '/Users/sebastia...', 444)
#1 /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php(444): Psy\Shell->handleError(2, 'include(/Users/...', '/Users/sebastia...', 444, Array)
#2 /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php(444): include()
#3 /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/Users/sebastia...')
#4 [internal function]: Composer\Autoload\ClassLoader->loadClass('Sym in /Users/sebastian/Development/app.manager/vendor/composer/ClassLoader.php on line 444
What I've alrdy tried:
removing and re-ading the laravel/tinker from composer.json