form element class is not loaded zf after uploading in dev server [duplicate] - zend-framework

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
Zend Framework: Model class not found
I am using ZF 1.11 and made a form element class to create drop down menu on the form . i get the error: Fatal error: Class 'Application_Form_Element_MenuSelect' not found after uploading the application in development server while It works perfectly in local xampp. Please help
$project_menu1 = new Application_Form_Element_MenuSelect('task_project_id');
$project_menu1->setLabel('Select Project: ')
->setRequired(true);
$this->addElement($project_menu1);

As it worked on Windows and doesn't work on your dev server, I suspect that you have a case-sensitivity issue with filenames as your dev server will almost certainly need the case of the filename to be correct.
Things to check:
The file is called MenuSelect.php
The folder name to MenuSelect.php has the correct case (probably should be application/forms/Element)
The class name within MenuSelect.php is correct

Related

Zend/Controller/Action.php file missing

I'm new to Zend framework, and was trying out the Guestbook tutorial that Zend has on it's web site. I have the latest framework downloaded and setup properly; php.ini include_files has the library location set correctly. In the Guestbook tutorial, the GuestbookController extends Zend_Controller_Action and that's what I typed, but I keep getting error stating that Zend_Controller_Action is not found. Turns out, the folder Controller is missing from /library/Zend. I tried re-downloading Zend Framework thinking I might have accidentally deleted it, but it's not in the newly downloaded framework directory either. So, where can I get the Controller folder that contains all the required class files? Or how can I fix the issue? Any help is much appreciated.
Thanks
Kuni
It sounds like the tutorial you are following is for ZF1. ZF2 was released last year and works quite differently. You might want to try the quickstart from the current manual instead:
http://framework.zend.com/manual/2.0/en/user-guide/overview.html
Alternatively you can still download version 1.12 from the Zend site.

disabled javascript in content type form: no javascript

I have a problem in my drupal installation..in the content type page i can't drag and drop lines and i see two columns :weight and parent :image1
The problem had application on the content add form like that: image2
If there any configuration to add or to remove or any help to provide i will be very grateful
Thanks
Sorry..
It seemed to be a server configuration problem.. i uploaded a 'virgin' drupal installation to my remote server ( the producton erver) and i installed without any supplement module, just the core modules with the 777 permission for all the files..but the same problem persist ..I'm suspecting the php version that i' m using (5.2.17 instead of 5.3.10)

How to solve the error while adding new classes [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Duplicate Symbol Error in Objective-C build?
What I did is creating two different iPhone applications individually, now what I need is I have to combine these two applications as single application by using tabbar controller.But while adding the second application classes to first classes it shows the error:
Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1
I can't understand what is it and one more is shown as:
Duplicate Symbol _count in
/users/ensisinfosolutionscom/Desktop/abc/build/CustomImagePicker.build
/Debug-iphonesimulator/CustomImagePicker.build/Objects-normal/i386/numbers.o
and
/users/ensisinfosolutionscom/Desktop/abc/build/CustomImagePicker.build/Debug-iphonesimulator/CustomImagePicker.o
here customimagepicker is my class name. What is this error?
This looks like you are lacking some library

Working with Facebook Connect

I have two files with identical code (it is the code they mention here: http://developers.facebook.com/blog/post/198). I have one of these files here: http://gnucom.cc/test.html and another one of these files here: http://blog.gnucom.cc/test.html. I have the main URL set to gnucom.cc and the Connect URL set to http://blog.gnucom.cc.
For the life of me, I cannot figure out why the version accessed from the subdomain doesn't work. I receive a loading icon and that is it - afterwards it disappears.
Can anyone suggest what I may be doing wrong?
http://wiki.developers.facebook.com/index.php/Supporting_Subdomains_In_Facebook_Connect
You should type in http://gnucom.cc instead of http://www.gnucom.cc (if it's not already this way)

symfony/zend integration - blank screen

I need to use ZendAMF on a symfony project and I'm currently working on integrating the two.
I have a frontend app with two modules, one of which is 'gateway' - the AMF gateway. In my frontend app config, I have the following in the configure function:
// load symfony autoloading first
parent::initialize();
// Integrate Zend Framework
require_once('[MY PATH TO ZEND]\Loader.php');
spl_autoload_register(array('Zend_Loader', 'autoload'));
The executeIndex function my the gateway actions.class.php looks like this
// No Layout
$this->setLayout(false);
// Set MIME Type
$this->getResponse()->setContentType('application/x-amf; charset='.sfConfig::get('sf_charset'));
// Disable cause this is a non-html page
sfConfig::set('sf_web_debug', false);
// Create AMF Server
$server = new Zend_Amf_Server();
$server->setClass('MYCLASS');
echo $server->handle();
return sfView::NONE;
Now when I try to visit the url for the gateway module, or even the other module which was working perfectly fine until this attempt, I only see a blank screen, with not even the symfony dev bar loaded. Oddly enough, my symfony logs are not being updated as well, which suggests that Synfony is not even being 'reached'.
So presumably the error has something to do with Zend, but I have no idea how to figure out what the error could be. One thing I do know for sure is that this is not a file path error, because if I change the path in the following line (a part of frontendConfiguration as shown above), I get a Zend_Amf_Server not found error. So the path must be correct. Also if I comment out this very same line, the second module resumes to normality, and my gateway broadcasts a blank x-amf stream.
spl_autoload_register(array('Zend_Loader', 'autoload'));
Does anyone have any tips on how I could attach this problem?
Thanks
P.S. I'm currently running an older version of Zend, which is why I am using Zend_Loader instead of Zend_autoLoader (I think). But I've tried switching to the new lib, but the error still remains. So it's not a version problem as well.
got it...
I was not using
set_include_path()
while loading Zend. It's still odd that it would give such a cryptic error, but this was the missing piece indeed.