WillyJimmyDev / simple-quiz

A simple quiz administration written in PHP with a MySQL backend. Uses Bootstrap 3 and Slim PHP micro framework
http://elanman.com/simple-quiz/
Apache License 2.0
165 stars 73 forks source link

Fatal error: require(): Failed opening required '/opt/nginx/encuesta/functions.php' #2

Closed armadaazteca closed 10 years ago

armadaazteca commented 10 years ago

I'm getting this error, of required file: functions.php, what is that for? is it really required?

WillyJimmyDev commented 10 years ago

Hi, which version of the quiz are you using? The functions.php file has been replaced with SimpleQuiz/Util/Base/setup.php since approx Oct 22, 2013.

smbdstopme commented 10 years ago

I downloaded the last master zip file and get the same error.

I have replaced $baseDir . '/functions.php' with $baseDir . '/SimpleQuiz/Utils/Base/setup.php' in autoload_files.php and now i get

Fatal error: Class 'ORM' not found in /home/*****/developer_html/quiz/index.php on line 7

WillyJimmyDev commented 10 years ago

Hi, thanks for reporting the errors... I think I've found the problem. The vendor directory is not under git version control. You need to run 'composer update' to get the latest dependencies. The composer.json file is in version control and the dependencies will be updated accordingly.

It doesn't make sense to keep all of the vendor directory under git

Can you run 'composer update' and let me know if that fixes the issue?

If you don't have composer installed and don't want to install it, an alternative solution for you would be to download the source code from SourceForge. The latest release there has all the dependencies packaged up for you.

Hope that helps...

trf000 commented 10 years ago

I'm running into this same issue. Downloaded the sourcecode from sourceforge, no joy.

at first it was looking in the wrong path for vendor once i corrected that (had it look up two levels) it calls for the function.php file

WillyJimmyDev commented 10 years ago

Hi trf000, Can you confirm whether you ran a 'composer update' or just tried the code from Sourceforge?

Could you also let me know your set up? apache, php versions etc

Thanks

trf000 commented 10 years ago

code from sourceforge

On Wed, May 14, 2014 at 1:13 PM, Ben Hall notifications@github.com wrote:

Hi trf000, Can you confirm whether you ran a 'composer update' or just tried the code from Sourceforge?

Could you also let me know your set up? apache, php versions etc

Thanks

— Reply to this email directly or view it on GitHubhttps://github.com/ElanMan/simple-quiz/issues/2#issuecomment-43116952 .

Pretend inferiority and encourage his arrogance.

WillyJimmyDev commented 10 years ago

Hi, I've just downloaded the 1.8.1 zip file from SourceForge and I can't recreate your errors. Could you post your environment details/versions?