eckmar-community / eckmar

Open-source marketplace on Laravel (PHP). Also known as the Eckmar's Marketplace Script.
104 stars 60 forks source link

error php artisan migrate #103

Open lilheat34 opened 7 months ago

lilheat34 commented 7 months ago

At this stage I am getting this error, how can i fix this ? my php version 8.2.12

PHP message: PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/nginx/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php:1443

knulii commented 7 months ago

Downgrade to php 7.2 Currently does not run on 8+

lilheat34 commented 7 months ago

bro, when im trying run sudo add-apt-repository ppa:opencpn/opencpn code for downgrade php i got error message.

`sudo add-apt-repository ppa:opencpn/opencpn PPA publishes dbgsym, you may need to include 'main/debug' component Repository: 'deb https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu/ kali-rolling main' Description: A Chartplotter and GPS Navigation Software.

OpenCPN is a free software (GPLv2) project to create a concise chartplotter and navigation software for use as an underway or planning tool. OpenCPN is developed by a team of active sailors using real world conditions for program testing and refinement. More info: https://launchpad.net/~opencpn/+archive/ubuntu/opencpn Adding repository. Press [ENTER] to continue or Ctrl-c to cancel. Adding deb entry to /etc/apt/sources.list.d/opencpn-ubuntu-opencpn-kali-rolling.list Adding disabled deb-src entry to /etc/apt/sources.list.d/opencpn-ubuntu-opencpn-kali-rolling.list Adding key to /etc/apt/trusted.gpg.d/opencpn-ubuntu-opencpn.gpg with fingerprint 116A13C5EDCEAB50DB00229867E4A52AC865EB40 Ign:2 https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu kali-rolling InRelease Err:3 https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu kali-rolling Release 404 Not Found [IP: 185.125.190.80 443] Hit:1 http://kali.download/kali kali-rolling InRelease Reading package lists... Done E: The repository 'https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu kali-rolling Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. `

knulii commented 7 months ago

Try something like this:

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt-get install php7.2-fpm php-mysql -y
sudo apt-get install -y php7.2-mysql
sudo apt-get install php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-gmp php7.2-curl php7.2-gd composer unzip -y
sudo systemctl restart php7.2-fpm

Not sure it will work on Kali though...

lilheat34 commented 7 months ago

i got some error on ubuntu linux :/

knulii commented 7 months ago

what do you get when you do php -v ?

lilheat34 commented 7 months ago

php 8.2 :/

lilheat34 commented 7 months ago

I got this error message when I tried to downgrade PHP

sudo apt install php7.2 Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package php7.2 E: Couldn't find any package by glob 'php7.2'

knulii commented 7 months ago

Install it like this

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt-get install php7.2-fpm php-mysql -y
sudo apt-get install -y php7.2-mysql
sudo apt-get install php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-gmp php7.2-curl php7.2-gd composer unzip -y
sudo systemctl restart php7.2-fpm
lilheat34 commented 7 months ago

I tried but I got this error

sudo apt-get install php7.2-fpm php-mysql -y

Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package php7.2-fpm E: Couldn't find any package by glob 'php7.2-fpm' E: Couldn't find any package by regex 'php7.2-fpm'

knulii commented 7 months ago

Sounds like you are skipping steps....

first

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update

then

sudo apt-get install php7.2-fpm php-mysql -y
sudo apt-get install -y php7.2-mysql
sudo apt-get install php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-gmp php7.2-curl php7.2-gd composer unzip -y
sudo systemctl restart php7.2-fpm

if 8.x or another is already installed you can switch versions with sudo update-alternatives --config php

lilheat34 commented 7 months ago

i got same error :/

user@user:~$ sudo apt install software-properties-common Reading package lists... Done Building dependency tree... Done Reading state information... Done software-properties-common is already the newest version (0.99.39). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. user@user:~$ sudo add-apt-repository ppa:ondrej/php PPA publishes dbgsym, you may need to include 'main/debug' component Repository: 'Types: deb URIs: https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ Suites: mantic Components: main ' Description: Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included. Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided.

Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa

You can get more information about the packages at https://deb.sury.org

IMPORTANT: The -backports is now required on older Ubuntu releases.

BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting

CAVEATS:

  1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
  2. If you are using apache2, you are advised to add ppa:ondrej/apache2
  3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline    or ppa:ondrej/nginx

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php

More info: https://launchpad.net/~ondrej/+archive/ubuntu/php Adding repository. Press [ENTER] to continue or Ctrl-c to cancel. Found existing deb entry in /etc/apt/sources.list.d/ondrej-ubuntu-php-mantic.sources Hit:1 http://tr.archive.ubuntu.com/ubuntu mantic InRelease Hit:2 http://tr.archive.ubuntu.com/ubuntu mantic-updates InRelease
Hit:3 http://tr.archive.ubuntu.com/ubuntu mantic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu mantic-security InRelease
Ign:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu mantic InRelease
Err:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu mantic Release 404 Not Found [IP: 185.125.190.80 443] Reading package lists... Done E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu mantic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. user@user$ sudo apt update Hit:1 http://tr.archive.ubuntu.com/ubuntu mantic InRelease Hit:2 http://tr.archive.ubuntu.com/ubuntu mantic-updates InRelease
Hit:3 http://tr.archive.ubuntu.com/ubuntu mantic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu mantic-security InRelease
Ign:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu mantic InRelease
Err:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu mantic Release 404 Not Found [IP: 185.125.190.80 443] Reading package lists... Done E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu mantic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. user@user:~$ sudo apt-get install php7.2-fpm php-mysql -y Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package php7.2-fpm E: Couldn't find any package by glob 'php7.2-fpm' E: Couldn't find any package by regex 'php7.2-fpm' user@user:~$

knulii commented 7 months ago

Use Ubuntu 20 or 22. or you can try something like this... https://devtutorial.io/how-to-install-php-7-2-on-ubuntu-23-10-p3202.html

lilheat34 commented 7 months ago

didn't works :/ can I install the eckmar with php 8.2?

knulii commented 7 months ago

I doubt it

lilheat34 commented 7 months ago

i tried with php 8.2 but it doesn't work. is anyone thinking about updating the project?