Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

How-to: Make Codiad run with PHP 8 #1134

Open
user5518 opened this issue Oct 2, 2021 · 10 comments
Open

How-to: Make Codiad run with PHP 8 #1134

user5518 opened this issue Oct 2, 2021 · 10 comments

Comments

@user5518
Copy link

user5518 commented Oct 2, 2021

After upgrading to PHP 8 on my home-Server, I got this error message in my logs:

PHP message: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/codiad/components/filemanager/controller.php:57

In order to remove this error, simply change line 57 in controller.php from this:

$Filemanager->project = @$_SESSION['project']['path'];

to this:

if(isset($_SESSION['project']['path'])){ $Filemanager->project = @$_SESSION['project']['path']; }

@HLSiira
Copy link

HLSiira commented Oct 2, 2021

Hey there,

I'm the lead developer of a fork of Codiad called Atheos that we just updated to natively run on PHP8 if you're interested in trying it out. I've been working on it for 2 years now maybe.

@JeanLescut
Copy link

This should be fixed by #1135
Could someone review this PR ?

@CremiDevelopment
Copy link

I have problem in get_magic_quotes_gpc() and my version php 8.0, i can fix it, or I need reinstall php version to 7.4?

@HLSiira
Copy link

HLSiira commented Oct 13, 2021

Codiad is no longer actively maintained. I maintain a modern and updated fork called Atheos that is tested with PHP8.

@CremiDevelopment
Copy link

Thanks @HLSiira <3

@Royalphax
Copy link

Royalphax commented May 31, 2022

For those who want codiad to work with PHP 8, I forked it and made all the necessary changes and now it works on my end.
https://github.com/Royalphax/Codiad

Thanks to @JeanLescut and @user5518 for their fixes. I also had to replace the get_magic_quotes_gpc function.

@HLSiira
Copy link

HLSiira commented May 31, 2022

Hey, not trying to be rude, just shilling out where I can but just in case you didn't know, I've been supporting a fork of Codiad called Atheos that works well with PHP 8 as well as a ton of other features and improvements.

@Royalphax
Copy link

Royalphax commented May 31, 2022

Hey, not trying to be rude, just shilling out where I can but just in case you didn't know, I've been supporting a fork of Codiad called AtheosAtheos that works well with PHP 8 as well as a ton of other features and improvements.

Hi @HLSiira , I already saw your project and I appreciate your work. But for some people here, we don't need to switch to another tool because Codiad is already doing the job perfectly. Please avoid spam in every issue about it because it is really annoying while people are trying to deal with Codiad issues. Thanks

@HLSiira
Copy link

HLSiira commented May 31, 2022

Well I hope you don't mind me asking, but now I'm curious. What do you mean by switching to another tool?

Atheos literally is an updated fork of Codiad, I took Codiad, forked it, made the same changes you've made about 2-3 years ago, and then some, and have continued optimizing it, and adding features based on issues opened by users. Codiad's issues are Atheos' issues, so what's the difference here?

I'm sorry if this seems rude, but I'm not following what you're saying.

@Royalphax
Copy link

In my case, downloading and configuring Atheos would take more time than changing the line of code that prevents Codiad from working with PHP 8. And I also tried to get Atheos working but it didn't work the first time.

There is no reason to be rude, I'm just explaining why, in my case (which is probably the same for other people), fixing codiad (without needing to modify its appearance, its main functioning, etc. [as Atheos propose it]) was the best solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants