Hello,
I tried to install yajra/laravel-datatables-oracle package in my Octobercms project, but I've got this error message below.
Your requirements could not be resolved to an installable set of packages.
Problem 1 - The requested package laravel/framework (locked at v5.5.45, required as ^5.8.0) is satisfiable by laravel/framework[v5.5.45] but these conflict with your requirements or minimum-stability.
Problem 2
- laravel/framework v5.8.9 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.8 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.7 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.6 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.5 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.4 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.34 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.33 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.32 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.31 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.30 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.3 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.29 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.28 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.27 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.26 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.25 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.24 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.23 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.22 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.21 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.20 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.2 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.19 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.18 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.17 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.16 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.15 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.14 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.13 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.12 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.11 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.10 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.1 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework v5.8.0 requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- laravel/framework 5.8.x-dev requires php ^7.1.3 -> your PHP version (7.2.18) overridden by "config.platform.php" version (7.0) does not satisfy that requirement.
- Installation request for laravel/framework ^5.8.0 -> satisfiable by laravel/framework[5.8.x-dev, v5.8.0, v5.8.1, v5.8.10, v5.8.11, v5.8.12, v5.8.13, v5.8.14, v5.8.15, v5.8.16, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.21, v5.8.22, v5.8.23, v5.8.24, v5.8.25, v5.8.26, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.4, v5.8.5, v5.8.6, v5.8.7, v5.8.8, v5.8.9].
I don't even know what this error message means... !_!
Why do I get this error and how can I fix it?
@2jiwon
The requested package laravel/framework (locked at v5.5.45, required as ^5.8.0)
I can take a guess for you, October is running LTS v5.5 and your package wants to use v5.8
This can't be installed right now, but later this month October is going to get updated to v6 see here: https://github.com/octobercms/october/issues/4381
So you could try again when October laravel version has been updated.
Hopefully I guessed correctly.
@2jiwon It looks like version 8 of that package supports Laravel 5.5, so you may have better luck with that.
@bennothommo I tried with version 8 and even 7 but no luck. So it says the package needs Laravel version 5.8?
@2jiwon Can you provide your composer.json file which you have used to install this package?
@bennothommo This is my composer.json file.
{
"name": "october/october",
"description": "October CMS",
"homepage": "https://octobercms.com",
"keywords": [
"october",
"cms",
"octobercms",
"laravel"
],
"license": "MIT",
"authors": [
{
"name": "Alexey Bobkov",
"email": "[email protected]",
"role": "Co-founder"
},
{
"name": "Samuel Georges",
"email": "[email protected]",
"role": "Co-founder"
},
{
"name": "Luke Towers",
"email": "[email protected]",
"homepage": "https://luketowers.ca",
"role": "Maintainer"
}
],
"support": {
"issues": "https://github.com/octobercms/october/issues",
"forum": "https://octobercms.com/forum/",
"docs": "https://octobercms.com/docs/",
"irc": "irc://irc.freenode.net/october",
"source": "https://github.com/octobercms/october"
},
"require": {
"php": ">=7.0",
"ext-mbstring": "*",
"ext-openssl": "*",
"october/rain": "~1.0",
"october/system": "~1.0",
"october/backend": "~1.0",
"october/cms": "~1.0",
"laravel/framework": "^5.8.0",
"wikimedia/composer-merge-plugin": "dev-master",
"pusher/pusher-php-server": "~3.0"
},
"require-dev": {
"fzaninotto/faker": "~1.7",
"phpunit/phpunit": "~5.7",
"phpunit/phpunit-selenium": "~1.2",
"meyfa/phpunit-assert-gd": "1.1.0",
"composer/composer": "^1.8"
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php",
"tests/UiTestCase.php",
"tests/PluginTestCase.php"
]
},
"scripts": {
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-update-cmd": [
"php artisan october:util set build"
]
},
"config": {
"preferred-install": "dist",
"platform": {
"php": "7.0"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"merge-plugin": {
"include": [
"plugins/*/*/composer.json"
],
"recurse": true,
"replace": false,
"merge-dev": false
}
}
}
@2jiwon do you get the same error with v8.x.x?
@w20k yes, I tried with this command. composer require yajra/laravel-datatables-oracle:"~8.0"
@2jiwon worked fine for me with a clean install/docker. Maybe clear composer|october cache?

Change your composer.json file:
"require": {
"laravel/framework": "^5.8.0",
to
"require": {
"laravel/framework": "5.5.*",
@ayumihamsaki I changed and tried again but this error occurred this time.
PHP Warning: Module 'zip' already loaded in Unknown on line 0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 39 installs, 4 updates, 0 removals
- Downgrading october/rain (v1.0.457 => v1.0.455): Update failed (Could not delete /home/ljw/public_html/byapps_cms/vendor/october/rain/tests/Parse/Assetic/MockAsset.php: Module 'zip' already loaded)
Would you like to try reinstalling the package instead [yes]? no
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
Could not delete /home/ljw/public_html/byapps_cms/vendor/october/rain/tests/Parse/Assetic/MockAsset.php: Module 'zip' already loaded
@w20k I cleared cache both october and composer, but no luck.
@2jiwon change your composer.json to the following:
{
"name": "2jiwon/october-project",
"description": "October CMS Project",
"require": {
"php": ">=7.0",
"ext-mbstring": "*",
"ext-openssl": "*",
"october/rain": "dev-develop as 1.0",
"october/system": "dev-develop",
"october/backend": "dev-develop",
"october/cms": "dev-develop",
"laravel/framework": "5.5.*",
"wikimedia/composer-merge-plugin": "dev-master",
"pusher/pusher-php-server": "~3.0",
"yajra/laravel-datatables-oracle": "~8.0"
},
"require-dev": {
"fzaninotto/faker": "~1.7",
"phpunit/phpunit": "~5.7",
"phpunit/phpunit-selenium": "~1.2",
"meyfa/phpunit-assert-gd": "1.1.0",
"composer/composer": "^1.8"
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php",
"tests/UiTestCase.php",
"tests/PluginTestCase.php"
]
},
"scripts": {
"post-update-cmd": [
"php artisan october:util set build"
]
},
"config": {
"preferred-install": "dist",
"platform": {
"php": "7.0"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"merge-plugin": {
"include": [
"plugins/*/*/composer.json"
],
"recurse": true,
"replace": false,
"merge-dev": false
}
}
}
and then delete composer.lock and /vendor. Then run composer update.
@LukeTowers Thank you for your solution. However, it seemed work but this error occurred.
- Installing october/system (dev-develop ce34e99):
Failed to download october/system from dist: Could not delete modules/system/lang/th/client.php: Module 'zip' already loaded
Now trying to download from source
- Installing october/system (dev-develop ce34e99):
[RuntimeException]
Could not delete modules/system/lang/th/client.php: Module 'zip' already loaded
@2jiwon Something in your PHP configuration is attempting to load the "zip" module a second time. You will need to investigate your PHP configuration files for something similar to extension=zip.so and ensure it is only used once.
@bennothommo Okay, I found nothing similar to extension=zip.so in php.ini file. However, found two zip.ini file in php.d directory and moved it temporarily. Then I tried again, this time another error occurred. !_!
- Installing october/system (dev-develop ce34e99):
Failed to download october/system from dist: Could not delete modules/system/lang/th/client.php:
Now trying to download from source
- Installing october/system (dev-develop ce34e99):
[RuntimeException]
Could not delete modules/system/lang/th/client.php:
@2jiwon Can you make sure that you have the correct permissions set for your modules folder?
@bennothommo Okay, I found some files have the wrong permissions. !_! Problem solved. Thank you VERY MUCH!
Not a problem @2jiwon :)
Most helpful comment
@bennothommo Okay, I found some files have the wrong permissions. !_! Problem solved. Thank you VERY MUCH!