Problem with upload website developed by Zend Framework

Updated my answer:
https://forum.infinityfree.com/t/problem-with-upload-my-website/37651/2?u=bayodino

Ok, i solved it! Thanks!
But now the problem is this:

Warning : require_once(/T2019/Zend/Loader/Autoloader.php): failed to open stream: No such file or directory in /home/vol3_1/epizy.com/epiz_27131371/htdocs/T2019/Zend/Application.php on line 81

Fatal error : require_once(): Failed opening required ‘/T2019/Zend/Loader/Autoloader.php’ (include_path=‘/home/vol3_1/epizy.com/epiz_27131371/htdocs/T2019/Zend:.:/usr/share/pear/’) in /home/vol3_1/epizy.com/epiz_27131371/htdocs/T2019/Zend/Application.php on line 81

And the line 81 of “Application.php” is this:

require_once ‘/T2019/Zend/Loader/Autoloader.php’;

You shouldn’t miss $_SERVER['DOCUMENT_ROOT']. !
this is correct:

require_once $_SERVER['DOCUMENT_ROOT'].'/T2019/Zend/Loader/Autoloader.php';
4 Likes

Now the problem is back to the one at line 404:
Warning : include_once(Zend/Config/Ini.php): failed to open stream: No such file or directory in /home/vol3_1/epizy.com/epiz_27131371/htdocs/T2019/Zend/Loader.php on line 134

Warning : include_once(): Failed opening ‘Zend/Config/Ini.php’ for inclusion (include_path=’/home/vol3_1/epizy.com/epiz_27131371/htdocs/T2019/Zend:.:/usr/share/pear/’) in /home/vol3_1/epizy.com/epiz_27131371/htdocs/T2019/Zend/Loader.php on line 134

Fatal error : Uncaught Error: Class ‘Zend_Config_Ini’ not found in /home/vol3_1/epizy.com/epiz_27131371/htdocs/T2019/Zend/Application.php:404 Stack trace: #0 /home/vol3_1/epizy.com/epiz_27131371/htdocs/T2019/Zend/Application.php(87): Zend_Application->_loadConfig(’/home/vol3_1/ep…’) #1 /home/vol3_1/epizy.com/epiz_27131371/htdocs/index.php(29): Zend_Application->__construct(‘development’, ‘/home/vol3_1/ep…’) #2 {main} thrown in /home/vol3_1/epizy.com/epiz_27131371/htdocs/T2019/Zend/Application.php on line 404

The line 404 of “Application.php” is this:

Friend, the problem isn’t solved unfortunately.
Can you help me?

Sorry, I seem to be too forgetful these days, anyway.

Can you show me line 134 of Loader.php?

1 Like

Please don’t create multiple topics about the same issue. Just bump the original topic, maybe with a summary post so it’s easier for people to jump in.

And maybe consider that the question you’re asking is extremely specific to your custom code, and not everyone here wants to debug your own creations for you.

Yes, is true. Excuse me, but I don’t know how can i solve this problem.
What do you suggest?
Where can I ask this?

To be honest: it’s your code. You chose to custom develop a code base. And part of custom developing a software application on your own means you’re going to encounter issues which you’re going to have to debug yourself.

If you want to be able to dump any error message somewhere and expect step by step instructions on how to solve it, use off the shelf software. The developer of the software should debug and fix these issues. And if you’re custom coding the application, then you’re that developer.

Looking at the history of this topic, most of the errors seems to boil down to some kind of class not found error. Which could be a files not being uploaded correctly or bad file/function loading in your script. I don’t know enough about Zend Framework to know which parts are custom built by you and which parts are stock Zend.

With that in mind, you may have more luck on a place like the Zend Framework forums, where people will probably know how to setup Zend Framework better than anyone here can. Or maybe a developer forum like StackOverflow.

But to be very clear: you need to ask much more specific questions. No more “my big codebase is giving errors, how do I fix my application” type questions. Nobody wants to debug your code for you in their spare time. If you want help, you need to ask questions about specific behavior of specific libraries, with simple reproduction steps people can try.

It’s your code. You need to debug it. You need to Google error messages, read documentation, add logging statements, do trial and error, refactor, rewrite, and sometimes start all over.

Yes, it’s not fun work. Yes, it will take a long time. Yes, you’ll bang your head against the wall because of why the stupid thing doesn’t work. And then again when you’ll find out how stupid of a mistake you made.

You chose to develop your own software. You’re a software developer now. And this is what software developers do. It’s rewarding at times, and utterly frustrating at other times.

Welcome to our world.

6 Likes

Ok, thanks a lot for all! :grinning:
You are right!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.