Welcome Guest, Not a member yet? Register   Sign In
What is causing PHP Spark errors?
#1

I am a software developer currently working on a PHP project using the latest version of CodeIgniter4. However, I am facing issues with the PHP Spark on OpenSUSE Tumbleweed. Has anyone encountered a similar problem while working with OpenSUSE?

To give you a better understanding of my setup, I am using XAMPP for Linux 7.4.29. Despite attempting various suggestions from Stack Overflow, I have been unable to resolve the issue.

The error message I am receiving is as follows:

"PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib64/php8/extensions/intl (/usr/lib64/php8/extensions/intl: cannot open shared object file: No such file or directory), /usr/lib64/php8/extensions/intl.so (/usr/lib64/php8/extensions/intl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: require(/opt/lampp/htdocs/testing/ci-news/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php): Failed to open stream: No such file or directory in /opt/lampp/htdocs/testing/ci-news/spark on line 63
Warning: require(/opt/lampp/htdocs/testing/ci-news/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php): Failed to open stream: No such file or directory in /opt/lampp/htdocs/testing/ci-news/spark on line 63 PHP Fatal error: Uncaught Error: Failed opening required '/opt/lampp/htdocs/testing/ci-news/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php' (include_path='.:/usr/share/php8:/usr/share/php/PEAR') in /opt/lampp/htdocs/testing/ci-news/spark:63 Stack trace: #0 {main} thrown in /opt/lampp/htdocs/testing/ci-news/spark on line 63 Fatal error: Uncaught Error: Failed opening required '/opt/lampp/htdocs/testing/ci-news/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php' (include_path='.:/usr/share/php8:/usr/share/php/PEAR') in /opt/lampp/htdocs/testing/ci-news/spark:63 Stack trace: #0 {main} thrown in /opt/lampp/htdocs/testing/ci-news/spark on line 63"

Thank you for your assistance.
Reply
#2

(This post was last modified: 04-19-2023, 10:29 AM by captain-sensible. Edit Reason: additional )

well hello from another Linux user ; i'm on Arch maybe we should have a place in the lounge called something like gnu/Linux CI4 developers ?

I'm on Arch by the way (in joke) thing is there is basically a choice with Linux go for Apache web server that is "installed" on your OS and therefore references your OS installed stuff and config. For instance at /etc/php i have a file php.ini in that file I removed the ";" from :
Code:
extension=curl
extension=intl
extension=pdo_sqlite


Now with xampp its not installed as such but is a system of its own with "embedded stuff" which usually gets put at /opt which is your case. So if you were to
do an edit of php.ini at /etc/php/php.ini it would have no effect because xampp doesn't reference that. So you have to look in /opt to find equivalent

Can you clarify what you are using spark for ? not to fire up Ci4 i guess but to run checks like :

$ php spark namespaces

personally i would try and get apache going on your tumbleweed - its rolling release yes?



you can actually develop CI4 to quite an extent with Linux by just having a CI4 direvtory on your Desktop. For database you can use sqlite (serverless) and fire up Ci4 via spark


Also if you develop on your Desktop of normal user you won't get ; that anoying permissions in not being able to edit code. Thats because apache is in the root system; i have got around that if you go down the root of developing in apache

basically by web apps with Arch are at : /srv/http eg /srv/http/kursaal2.org what is wanted is that apache runs with no hitches but that when logged in as a normal user, you can edit code. First step is to go to /etc/httpd/ and look at the fiel httpd.conf in mine it has:

Code:
User http
Group http

what i did is add myself to the group http, then for the web app kursall2.org recursively chown eg

chown kursaal2.org andrew: httpd -R

then chmod , you can do something like:


Code:
find . -type d  | xargs chmod 775
find . -type f  | xargs chmod 664

if you look at a live web server files normally 664 and directories 775 . the only ones that need 777 are writable ans sub directories
CMS CI4     I use Arch Linux by the way 

Reply




Theme © iAndrew 2016 - Forum software by © MyBB