Always get this error when I use upload images - Using Zend Framework - zend-framework

Warning: include_once(Zend/Http/Client.php) [function.include-once]: failed to open stream: No such file or directory in /home/hotbuzz/public_html/include/Zend/Loader.php on line 83
Warning: include_once() [function.include]: Failed opening 'Zend/Http/Client.php' for inclusion (include_path='/home/hotbuzz/public_html/include;.:/usr/lib/php:/usr/local/lib/php') in /home/hotbuzz/public_html/include/Zend/Loader.php on line 83
Warning: require_once(Zend/Exception.php) [function.require-once]: failed to open stream: No such file or directory in /home/hotbuzz/public_html/include/Zend/Loader.php on line 87
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Exception.php' (include_path='/home/hotbuzz/public_html/include;.:/usr/lib/php:/usr/local/lib/php') in /home/hotbuzz/public_html/include/Zend/Loader.php on line 87
Always get this error when i use image upload in the script .. I m using Zend Framework .. I i dont know what to do ?
My Zend path : public_html/include/zend
phpinfo : hotbuzz.in/phpinfo.php
I have not configured path to Zend in .htaccess
?

try this
set_include_path(dirname(realpath(__FILE__)).PATH_SEPARATOR.get_include_path());

Does your include path point to the library files or just the root of the Zend project. The include path needs to point to the directory that contains the directory structure
Zend
Acl
Auth
etc...
which maybe the library directory of the files you downloaded.

There is something weird in your include path ;.:
I think you probably have use the syntax of windows in a linux server.
You should use PATH_SEPARATOR the be sure that you will have the right one on every server.

Related

how to overcome filetime() error in typo3

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception PHP Warning:
filemtime(): stat failed for
/opt/lampp/htdocs/typonew/public/fileadmin/templates/main_1_column_with_menu.html
in
/opt/lampp/htdocs/typonew/vendor/typo3fluid/fluid/src/View/TemplatePaths.php
line 625
It seems that the file fileadmin/templates/main_1_column_with_menu.htmldoesn't exist. Create the file, check the file permission or change the path in your configuration.

Error with using ORB-SLAM2

I was trying to get my hands dirty with SLAM and I started with ORB-SLAM2 library.
I have downloaded a TUM sequence and wanted to use ROS for it. So I am following the steps according this page.
In Step 7, part 2, when i run ./build_ros.sh, I get the following error:
In file included from /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:41:0,
from /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LoopClosing.h:34,
from /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LocalMapping.h:26,
from /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/Tracking.h:31,
from /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/System.h:29,
from /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/src/AR/ViewerAR.h:29,
from /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/src/AR/ViewerAR.cc:21:
/home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/jacobian_workspace.h:36:24: fatal error: g2o/config.h: No such file or directory
compilation terminated.
CMakeFiles/MonoAR.dir/build.make:198: recipe for target 'CMakeFiles/MonoAR.dir/src/AR/ViewerAR.cc.o' failed
make[2]: *** [CMakeFiles/MonoAR.dir/src/AR/ViewerAR.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
I went and checked the g2o folder and there is a file by name config.h.
So why am I still getting the error?
In the CMakeLists.txt in /home/sarvagya/Desktop/Swaayatt/ORB_SLAM2/Examples/ROS/ORB_SLAM2/
Try adding
${PROJECT_SOURCE_DIR}/../../../Thirdparty
to the list of include_directories() at line 44 (it should be at that line if you did not change the file)
Adding this line tells the cmake where to find the g2o/config.h.
From the information, that missing g2o/config.h in jacobian_workspace.h, but when I look into the file, and do not find the include in line 36. Do I miss something, or you change something?

lvcGame, VBS and HLA setup Error 127 out of LVCGame

I am trying to setup VBS to talk HLA to a legacy app using LVCGame.
I am using openRTI currently in my project. I have LVCGame pointed to a directory with the following dlls:
RTI-NG.dll
OpenRIT.dll (copied from another folder)
libRTI-NG.dll (copy of RTI-NG.dll and renamed)
FedTime.dll
My vbsClient.config relevant lines:
Plugins = HLA-1.3.dll : HLA-1.3\Project\HLA.config
I am getting the following error out of LVCGame:
2014-12-31 10:48:03 INFO (LVCGAME::LVCGame::init) Initialised.
2014-12-31 10:48:03 ERROR (LVCGAME::LVCGame::start) 'class LVCGAME::UTILS::Exception' (src\LVCGame.cpp, line 766): Couldn't load plugin .\lib\HLA-1.3.dll. Error Code: 127
I did send an email to VBS support but it I had any idea what a 127 error was maybe I could get further.
I found that another free RTI Portico implementation is mentioned as working with LVCgame giving that a try has pretty similar results I get and error 126 instead of a 127.
2015-01-02 09:47:47 INFO (LVCGAME::UTILS::IOUtils::extractDllLoadPath) Using DLL path specified as 'D:\Program Files (x86)\Portico\portico-2.0.1\bin\vc10'.
2015-01-02 09:47:47 INFO (LVCGAME::LVCGame::init) Initialised.
2015-01-02 09:47:47 ERROR (LVCGAME::LVCGame::start) 'class LVCGAME::UTILS::Exception' (src\LVCGame.cpp, line 766): Couldn't load plugin .\lib\HLA-1.3.dll. Error Code: 126
2015-01-02 09:47:47 ERROR (LVCGAME::LVCGame::start) LVCGame start failed!
So eventually I found that Portico was creating a log file located in my VBS directory\logs. From there I was able to see that Portico at least was not able to find my .fed file I had the path messed up.

Zend Failed opening Zend/Application.php

Ok, so I am relatively new to Zend. I have created a new application and started to build an authentication system based on a guide. However, the server is kicking out an Internal Server Error.
Upon checking the PHP error logs I have been given the following two errors:
[Thu Jul 19 10:26:40 2012] [error] [client 80.194.255.4] PHP Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in /home/www-data/zend.danielgroves.net/htdocs/public/index.php on line 18
[Thu Jul 19 10:26:40 2012] [error] [client 80.194.255.4] PHP Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='/home/www-data/zend.danielgroves.net/htdocs/library:.:/usr/share/php:/usr/share/pear') in /home/www-data/zend.danielgroves.net/htdocs/public/index.php on line 18
The controller:-
class Admin_AuthController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
$form = new Application_Form_login();
$request = $this->getRequest();
if ($request->isPost()) {
if ($form->isValid($request->getPost())) {
}
}
$this->view->form = $form;
}
}
Any ideas on what the cause of this could be? As I said I am new to Zend so I don't really know where to start when it comes to these errors, especially as this is referencing files that were created by the Zend CLI tool.
Any pointers/suggestions etc would be muchly appriciated.
Dan.
Your application needs to be able to access the Zend Framework classes. Typically you would put these into the library folder in your app (Zend Tool does not do this for you). So from your downloaded copy of ZF, copy the library/Zend folder into your library folder. You should end up with the file it is looking for at /home/www-data/zend.danielgroves.net/htdocs/library/Zend/Application.php, which will fix the error.
I'm having this exact same problem. First I was missing the reference to Zend/Application.php. So I found that, and copied into the Library folder, and changed the code to point at the file in the library folder. Then there was another reference to the same file WITHIN the Application.php file. I fixed that. Now I have a series of other errors like:
Fatal error: Class 'Zend_Loader_Autoloader' not found in C:\Development\PHPSites\testProjectIII\library\Application.php on line 82
So I REM out line 82:
$this->_autoloader = Zend_Loader_Autoloader::getInstance();
And I get THIS error:
Fatal error: Class 'Zend_Config_Ini' not found in C:\Development\PHPSites\testProjectIII\library\Application.php on line 388
So I REM out that line:
$config = new Zend_Config_Ini($file, $environment);
After that, I finally get this error:
Notice: Undefined variable: config in C:\Development\PHPSites\testProjectIII\library\Application.php on line 417 Fatal error: Call to a member function toArray() on a non-object in C:\Development\PHPSites\testProjectIII\library\Application.php on line 417
Now - If I understand what I'm seeing here, it's that the application is looking for libraries that include classes that are not defined. All I'm doing is taking the entire working program (this is right out of the startup wizard, with no changes), which works on the Apache server that Zend installs. But I take it to another folder where the root of my IIS server is, and the libraries cannot be found.
I've been trying to isolate what is what, but nothing is working. The answer directly above my post here is exactly what I tried.

how to upload linkr button

when I install plg.linkr_button.upgrade-any-to-2.3.7.zip & uplad file it gives error Install plugin error & this message
/home/abc/tmp/install_4d0239a35bd0f/plg.linkr_button/linkr_button.php to /home/abc/plugins/editors-xtd/linkr_button.php
OR when I upload super installer directly then it gives this error
Warning: LinkrInstaller::require_once(/home/abc/administrator/components/com_linkr/defines.php) [function.require-once]: failed to open stream: No such file or directory in /home/abc/administrator/components/com_linkr/install.linkr.php on line 207
Fatal error: LinkrInstaller::require_once() [function.require]: Failed opening required '/home/abc/administrator/components/com_linkr/defines.php' (include_path='.:/usr/local/lib/php') in /home/abc/administrator/components/com_linkr/install.linkr.php on line 207
Either the update is meesed up or you do not have permission to read the uploaded file.