PHP Fatal error (blank page)


#1

Hello:

I installed dreamfactory for Linux (Centos) with this instructions:

https://github.com/dreamfactorysoftware/dsp-core/wiki/Install-CentOS-RedHat

All ok, but I get a blank page with this log error:

mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required ‘`[…path ommited by me…]/dreamfactory/platform/web/…/vendor/autoload.php’ (include_path=’.:’) in […path ommited by me…]/dreamfactory/platform/web/index.php on line 54

I haven’t any directory called vendor, and haven’t any file called autoload.php. Really not exists!!.

Where I can download it?, or why has not been downloaded with git?.

Thanks!!.


#2

What was the output when you ran the installer script? install.sh creates the {installDirectory}/platform/vendor directory, so if it doesn’t exist then I’d say something failed while running the script.


#3

Well, I have an dedicated server with some domains. I created a new subdomain like apps.domain.com, and I have created the subdirectories inside…

/var/www/vhost/xxxx/xxxxx/apps.domain.com/dreamfactory/platform

dreamfactory and platform have 777 permissions, and user.apache modified (with chown).

In platform directory I have make:

git clone https://github.com/dreamfactorysoftware/dsp-core.git .

And then I executed the installer:

./scripts/installer.sh –cv

The only error is changing permissions, but I resolved it with:

chown -R user.apache * .git*

In my httpd subdomain configuration (I use Plesk panel), I have set apps.domain.com to local path: /var/www/vhost/xxxx/xxxx/dreamfactory/platform/web

Now I access to apps.domain.com and I get a blank page with previous error that I have posted.

…/platform/vendor is not exists!!.

You think that problem is installer?.

Thanks!!


#4

In Apache, have you enabled the rewrite engine and set AllowOverride to All?


#5

Hi, I had the same msg cause the install script didn’t installall the dependencies :

  • info: Updating dependencies
  • error: Composer did not complete successfully (1). Some features may not operate properly.
  • info: Complete. Enjoy the rest of your day!

Trying this command :

curl -sS https://getcomposer.org/installer | php

I get an error :

couldn’t connect to host

HTTPS (https://getcomposer.org/version) seems to be block by admins on this server.

I hope it can help.


#6

Yes jeffreystables.

But the problem is that I haven’t /vendor directory.

Thanks.


#7

I maked a new fresh install in /opt/dreamfactory/platform as said in Centos instructions, and I have the same problem. Directory /vendor is not exists!!.

Thanks!!.


#8

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


#9

The installer script uses composer to create this directory, among others. Are you certain you’ve set everything up with the proper permissions and have run composer successfully? If you are unable to manually tune your environment as needed, I recommend using a Bitnami package. Bitnami modules may be installed from CLI as well.


#10

Was it resolved ?
I have similar issue.


#11

Hi @aman_sinha, you have installed in CentOS 7 following the installation guide, and the installer script failed to create /platform/vendor? Please document your issue better so we can troubleshoot.


#12

I am getting the same issue. Does not create vendor folder.

[/opt/dreamfactory/platform]# ls -la
total 1268
drwxrwxrwx. 14 apache apache 4096 Aug 20 12:55 .
drwx------. 3 apache apache 4096 Aug 19 21:52 …
drwx------. 5 ec2-user apache 4096 Aug 19 21:54 app
-rw-rw-r–. 1 ec2-user apache 200 Aug 19 21:54 app.json
drwx------. 4 apache apache 4096 Aug 19 21:54 .bp-config
-rw-rw-r–. 1 apache apache 89 Aug 19 21:54 .cfignore
-rw-rw-r–. 1 ec2-user apache 196 Aug 19 21:54 CHANGELOG.md
-rw-rw-r–. 1 ec2-user apache 2581 Aug 19 21:54 composer.json
-rw-rw-r–. 1 ec2-user apache 67375 Aug 19 21:54 composer.lock
-rw-rw-r–. 1 ec2-user apache 1117978 Aug 20 12:55 composer.phar
drwx------. 7 ec2-user apache 4096 Aug 19 21:54 config
drwx------. 5 ec2-user apache 4096 Aug 19 21:54 docs
-rw-rw-r–. 1 ec2-user apache 806 Aug 19 21:54 .dreamfactory.php
drwx------. 8 ec2-user apache 4096 Aug 19 21:54 .git
-rw-rw-r–. 1 ec2-user apache 366 Aug 19 21:54 .gitattributes
-rw-rw-r–. 1 ec2-user apache 567 Aug 19 21:54 .gitignore
-rw-rw-r–. 1 ec2-user apache 11358 Aug 19 21:54 LICENSE.txt
drwxrwsr-x. 2 ec2-user apache 4096 Aug 19 21:59 log
drwx------. 3 apache apache 4096 Aug 19 21:54 .openshift
-rw-rw-r–. 1 ec2-user apache 568 Aug 19 21:54 phpunit.xml
-rw-rw-r–. 1 ec2-user apache 38 Aug 19 21:54 Procfile
drwx------. 2 apache apache 4096 Aug 19 21:54 .profile.d
-rw-rw-r–. 1 ec2-user apache 3556 Aug 19 21:54 README.md
drwx------. 2 ec2-user apache 4096 Aug 19 21:57 scripts
drwxrwsr-x. 2 ec2-user apache 4096 Aug 19 21:59 storage
drwx------. 4 ec2-user apache 4096 Aug 19 21:54 tests
drwx------. 13 ec2-user apache 4096 Aug 19 21:59 web

Can you please provide a solution?

thanks,

ankit


#13

What is the output when you run installer.sh? What is logged in installer.log? Have you followed the CentOS install guide? Please provide additional specifics so I can replicate the behavior.


#14

This is what I get and can’t seem to be able to fix the issue:


DreamFactory Services Platform™ Linux Installer [Mode: Local v1.3.10]


  • info: Install user is “root”
  • info: Composer pre-installed: /opt/dreamfactory/platform/composer.phar
  • info: Checking for package manager updates
  • info: External modules updated
  • info: Checking file system structure and permissions
  • info: Installing dependencies
  • error: Composer did not complete successfully (2). Some features may not operate properly.
  • info: Complete. Enjoy the rest of your day!

#15

Did you run installer.sh with -cv as the options, as prescribed in the install instructions? ( https://github.com/dreamfactorysoftware/dsp-core/wiki/Install-CentOS-RedHat )
You should have gotten more verbose output about that error with Composer.


#16

I ran into same issue.

Did a few things to get here on ubuntu 14.04…One is that I immediately scrubbed apache after downloading the php packages.

Next, i created a non-root sudo user ‘df’ and installed directly in that users home directory using git pull like so:

sudo git init .

sudo git remote add origin https://github.com/dreamfactorysoftware/dreamfactory.
git

sudo git pull origin master

then installed composer

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/loca
l/bin --filename=composer

the ran composer install --no-dev and got error on missing vendor file

Ran same with sudo and no problems…

sudo composer install --no-dev