Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Laravel Project Hosting Error


We are missing the vendor folder in Laravel demo1 because of this we are getting this error

AH01071: Got error 'PHP message: PHP Warning: require(/var/www/vhosts/outreachdeal.com/influencer.outreachdeal.com/starterkit/public/../vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/vhosts/outreachdeal.com/influencer.outreachdeal.com/starterkit/public/index.php on line 34PHP message: PHP Fatal error: Uncaught Error: Failed opening required '/var/www/vhosts/outreachdeal.com/influencer.outreachdeal.com/starterkit/public/../vendor/autoload.php' (include_path='.:/opt/plesk/php/8.1/share/pear') in /var/www/vhosts/outreachdeal.com/influencer.outreachdeal.com/starterkit/public/index.php:34\nStack trace:\n#0 /var/www/vhosts/outreachdeal.com/influencer.outreachdeal.com/starterkit/index.php(2): require_once()\n#1 {main}\n thrown in /var/www/vhosts/outreachdeal.com/influencer.outreachdeal.com/starterkit/public/index.php on line 34'


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Hi,

Please run composer install in your Laravel project directory to install the required dependencies and generate the 'vendor' folder. This command will resolve and install all the packages and libraries necessary for your project to function correctly.

Thanks



Despite having PHP version 8.0.30, I am still encountering these errors.

laravel starterkit
-bash-4.2$ cd starterkit
-bash-4.2$ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

Problem 1
- Root composer.json requires php ^8.0.2 but your php version (7.4.33) does not satisfy that requirement.
Problem 2
- brick/math is locked to version 0.11.0 and an update of this package was not requested.
- brick/math 0.11.0 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 3
- doctrine/lexer is locked to version 3.0.0 and an update of this package was not requested.
- doctrine/lexer 3.0.0 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 4
- egulias/email-validator is locked to version 4.0.1 and an update of this package was not requested.
- egulias/email-validator 4.0.1 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 5
- laravel/framework is locked to version v10.15.0 and an update of this package was not requested.
- laravel/framework v10.15.0 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 6
- laravel/sanctum is locked to version v3.2.5 and an update of this package was not requested.
- laravel/sanctum v3.2.5 requires php ^8.0.2 -> your php version (7.4.33) does not satisfy that requirement.
Problem 7
- league/flysystem is locked to version 3.15.1 and an update of this package was not requested.
- league/flysystem 3.15.1 requires php ^8.0.2 -> your php version (7.4.33) does not satisfy that requirement.
Problem 8
- league/flysystem-local is locked to version 3.15.0 and an update of this package was not requested.
- league/flysystem-local 3.15.0 requires php ^8.0.2 -> your php version (7.4.33) does not satisfy that requirement.
Problem 9
- maennchen/zipstream-php is locked to version 3.1.0 and an update of this package was not requested.
- maennchen/zipstream-php 3.1.0 requires php-64bit ^8.1 -> your php-64bit version (7.4.33) does not satisfy that requirement.
Problem 10
- monolog/monolog is locked to version 3.4.0 and an update of this package was not requested.
- monolog/monolog 3.4.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 11
- nette/utils is locked to version v4.0.0 and an update of this package was not requested.
- nette/utils v4.0.0 requires php >=8.0 <8.3 -> your php version (7.4.33) does not satisfy that requirement.
Problem 12
- nunomaduro/termwind is locked to version v1.15.1 and an update of this package was not requested.
- nunomaduro/termwind v1.15.1 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 13
- openspout/openspout is locked to version v4.15.0 and an update of this package was not requested.
- openspout/openspout v4.15.0 requires php ~8.1.0 || ~8.2.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 14
- psr/log is locked to version 3.0.0 and an update of this package was not requested.
- psr/log 3.0.0 requires php >=8.0.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 15
- psr/simple-cache is locked to version 3.0.0 and an update of this package was not requested.
- psr/simple-cache 3.0.0 requires php >=8.0.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 16
- ramsey/collection is locked to version 2.0.0 and an update of this package was not requested.
- ramsey/collection 2.0.0 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 17
- ramsey/uuid is locked to version 4.7.4 and an update of this package was not requested.
- ramsey/uuid 4.7.4 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 18
- symfony/console is locked to version v6.3.0 and an update of this package was not requested.
- symfony/console v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 19
- symfony/css-selector is locked to version v6.3.0 and an update of this package was not requested.
- symfony/css-selector v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 20
- symfony/deprecation-contracts is locked to version v3.3.0 and an update of this package was not requested.
- symfony/deprecation-contracts v3.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 21
- symfony/error-handler is locked to version v6.3.0 and an update of this package was not requested.
- symfony/error-handler v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 22
- symfony/event-dispatcher is locked to version v6.3.0 and an update of this package was not requested.
- symfony/event-dispatcher v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 23
- symfony/event-dispatcher-contracts is locked to version v3.3.0 and an update of this package was not requested.
- symfony/event-dispatcher-contracts v3.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 24
- symfony/finder is locked to version v6.3.0 and an update of this package was not requested.
- symfony/finder v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 25
- symfony/http-foundation is locked to version v6.3.1 and an update of this package was not requested.
- symfony/http-foundation v6.3.1 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 26
- symfony/http-kernel is locked to version v6.3.1 and an update of this package was not requested.
- symfony/http-kernel v6.3.1 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 27
- symfony/mailer is locked to version v6.3.0 and an update of this package was not requested.
- symfony/mailer v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 28
- symfony/mime is locked to version v6.3.0 and an update of this package was not requested.
- symfony/mime v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 29
- symfony/process is locked to version v6.3.0 and an update of this package was not requested.
- symfony/process v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 30
- symfony/routing is locked to version v6.3.1 and an update of this package was not requested.
- symfony/routing v6.3.1 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 31
- symfony/service-contracts is locked to version v3.3.0 and an update of this package was not requested.
- symfony/service-contracts v3.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 32
- symfony/string is locked to version v6.3.0 and an update of this package was not requested.
- symfony/string v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 33
- symfony/translation is locked to version v6.3.0 and an update of this package was not requested.
- symfony/translation v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 34
- symfony/translation-contracts is locked to version v3.3.0 and an update of this package was not requested.
- symfony/translation-contracts v3.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 35
- symfony/uid is locked to version v6.3.0 and an update of this package was not requested.
- symfony/uid v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 36
- symfony/var-dumper is locked to version v6.3.1 and an update of this package was not requested.
- symfony/var-dumper v6.3.1 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 37
- yajra/laravel-datatables is locked to version v10.1.0 and an update of this package was not requested.
- yajra/laravel-datatables v10.1.0 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 38
- yajra/laravel-datatables-buttons is locked to version v10.0.6 and an update of this package was not requested.
- yajra/laravel-datatables-buttons v10.0.6 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 39
- yajra/laravel-datatables-export is locked to version v10.0.0 and an update of this package was not requested.
- yajra/laravel-datatables-export v10.0.0 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 40
- yajra/laravel-datatables-fractal is locked to version v10.0.0 and an update of this package was not requested.
- yajra/laravel-datatables-fractal v10.0.0 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 41
- yajra/laravel-datatables-html is locked to version v10.7.0 and an update of this package was not requested.
- yajra/laravel-datatables-html v10.7.0 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 42
- yajra/laravel-datatables-oracle is locked to version v10.6.2 and an update of this package was not requested.
- yajra/laravel-datatables-oracle v10.6.2 requires php ^8.0.2 -> your php version (7.4.33) does not satisfy that requirement.
Problem 43
- laravel/breeze is locked to version v1.21.2 and an update of this package was not requested.
- laravel/breeze v1.21.2 requires php ^8.1.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 44
- laravel/pint is locked to version v1.10.5 and an update of this package was not requested.
- laravel/pint v1.10.5 requires php ^8.1.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 45
- laravel/sail is locked to version v1.23.1 and an update of this package was not requested.
- laravel/sail v1.23.1 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 46
- nunomaduro/collision is locked to version v7.7.0 and an update of this package was not requested.
- nunomaduro/collision v7.7.0 requires php ^8.1.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 47
- phpunit/php-code-coverage is locked to version 10.1.2 and an update of this package was not requested.
- phpunit/php-code-coverage 10.1.2 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 48
- phpunit/php-file-iterator is locked to version 4.0.2 and an update of this package was not requested.
- phpunit/php-file-iterator 4.0.2 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 49
- phpunit/php-invoker is locked to version 4.0.0 and an update of this package was not requested.
- phpunit/php-invoker 4.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 50
- phpunit/php-text-template is locked to version 3.0.0 and an update of this package was not requested.
- phpunit/php-text-template 3.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 51
- phpunit/php-timer is locked to version 6.0.0 and an update of this package was not requested.
- phpunit/php-timer 6.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 52
- phpunit/phpunit is locked to version 10.2.5 and an update of this package was not requested.
- phpunit/phpunit 10.2.5 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 53
- sebastian/cli-parser is locked to version 2.0.0 and an update of this package was not requested.
- sebastian/cli-parser 2.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 54
- sebastian/code-unit is locked to version 2.0.0 and an update of this package was not requested.
- sebastian/code-unit 2.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 55
- sebastian/code-unit-reverse-lookup is locked to version 3.0.0 and an update of this package was not requested.
- sebastian/code-unit-reverse-lookup 3.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 56
- sebastian/comparator is locked to version 5.0.0 and an update of this package was not requested.
- sebastian/comparator 5.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 57
- sebastian/complexity is locked to version 3.0.0 and an update of this package was not requested.
- sebastian/complexity 3.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 58
- sebastian/diff is locked to version 5.0.3 and an update of this package was not requested.
- sebastian/diff 5.0.3 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 59
- sebastian/environment is locked to version 6.0.1 and an update of this package was not requested.
- sebastian/environment 6.0.1 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 60
- sebastian/exporter is locked to version 5.0.0 and an update of this package was not requested.
- sebastian/exporter 5.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 61
- sebastian/global-state is locked to version 6.0.0 and an update of this package was not requested.
- sebastian/global-state 6.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 62
- sebastian/lines-of-code is locked to version 2.0.0 and an update of this package was not requested.
- sebastian/lines-of-code 2.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 63
- sebastian/object-enumerator is locked to version 5.0.0 and an update of this package was not requested.
- sebastian/object-enumerator 5.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 64
- sebastian/object-reflector is locked to version 3.0.0 and an update of this package was not requested.
- sebastian/object-reflector 3.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 65
- sebastian/recursion-context is locked to version 5.0.0 and an update of this package was not requested.
- sebastian/recursion-context 5.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 66
- sebastian/type is locked to version 4.0.0 and an update of this package was not requested.
- sebastian/type 4.0.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 67
- sebastian/version is locked to version 4.0.1 and an update of this package was not requested.
- sebastian/version 4.0.1 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 68
- spatie/flare-client-php is locked to version 1.4.1 and an update of this package was not requested.
- spatie/flare-client-php 1.4.1 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 69
- spatie/ignition is locked to version 1.9.0 and an update of this package was not requested.
- spatie/ignition 1.9.0 requires php ^8.0 -> your php version (7.4.33) does not satisfy that requirement.
Problem 70
- spatie/laravel-ignition is locked to version 2.2.0 and an update of this package was not requested.
- spatie/laravel-ignition 2.2.0 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 71
- symfony/yaml is locked to version v6.3.0 and an update of this package was not requested.
- symfony/yaml v6.3.0 requires php >=8.1 -> your php version (7.4.33) does not satisfy that requirement.
Problem 72
- laravel/framework v10.15.0 requires php ^8.1 -> your php version (7.4.33) does not satisfy that requirement.
- yajra/laravel-datatables-editor v1.25.4 requires illuminate/console * -> satisfiable by laravel/framework[v10.15.0].
- yajra/laravel-datatables-editor is locked to version v1.25.4 and an update of this package was not requested.



I have installed Composer and done this many times but I am still getting errors please open the URL below
https://app.gemoo.com/share/image-annotation/576024662130114560?codeId=Pa1azgn3JnGab&origin=screenshotuploader

Can we have a video call? it is taking too much time



This error typically occurs when the Livewire JavaScript isn't loading correctly in the subfolder environment. Here are some steps to resolve it:

Ensure that you have correctly configured the asset URL in your .env file. Set the ASSET_URL to the URL where your assets are hosted. For example:

ASSET_URL=https://subdomain.yourdomain.com


Sometimes, issues like this can be resolved by clearing the configuration cache. Run the following commands in your terminal:

php artisan config:clear
php artisan cache:clear


Double-check that your asset URLs are correctly generated for the subdomain. You can do this in your Blade templates or JavaScript files.

Also, try this to publish the livewire.js assets

php artisan vendor:publish --force --tag=livewire:assets --ansi


This is might be a related issue.
https://forum.laravel-livewire.com/t/uncaught-reference-error-livewire-is-not-defined/980/5

I'm sorry, but we do not offer video call support at this time. If you have any questions or need assistance, please feel free to ask, and I'll do my best to help you.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(