PHP errors in flex

I have an application in PHP and I'm using Flex for the
front. I was wondering how I could transfer information about
errors to flex from php.
So, the questions I am asking are:
What does Flex's HTTPService consider a fault?
Is there a way to write a general wrapper function to manage
httpservices? I tried but flex won't allow me to assign a function
call to the event listener, only a function.

Probably HTTP error codes. You can use the same function in
multiple HTTPServices. If you don't care which one of the
HTTPService thru the error, just use the same function when you
declare the faulthandler for the HTTPService.

Similar Messages

  • Third party contact form widgets no longer working with upgrade - PHP errors

    PHP seems to be even more screwed up with the latest update/upgrade to Muse.  The previous upgrade started producing the following error message when I uploaded my site via FTP:
    "1 Warning - Connection to PHP file failed. Unable to check if this web server supports PHP needed by Muse forms. Be sure the domain name entered in the FTP upload dialog is correct."
    However, everything worked and in participating in some queries here, it seemed to be an oddity versus anything serious (things still worked but an error message popped up for no real discernible reason)
    Since the latest update, however, widgets that I have from two different companies for the purpose of emailing me through the website, sending messages, etc, are no longer working and the following message is displayed upon hitting "submit"
    " Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration."
    In checking with my web host provider, I was told
    "the page appears to use the script form-u31652.php which does exist on the
    server.
    Unfortunately that error is not specific enough to point us in the right
    direction. PHP is indeed working on the server. However, looking at the
    apache web server error logs I can see that the contact form appears to be
    looking for a file that does not exist.
    To trouble shoot this issue you will want to work with Muse to determine
    why the sites coding is looking for the file
    /usr/home/NAME/public_html/WEBSITE.com/null."
    Any ideas what this means and how to solve this would be great. I've tried re-uploading the entire website, figuring that maybe something wasn't being uploaded via "Modified Only" but it still is happening
    Thanks!

    That isn't what ended up fixing it, Sanjit. Thanks to this article PHP FAQ for Muse Synchronized Text and help from an online representative from Adobe, was able to troubleshoot with my web provider. Turns out the problem was that a while back Muse deleted the fcgi-bin directory (probably during the previous upgrade, as that is when the PHP errors started to surface with me and others). And it was never put back by Muse even during a clean/full reupload of the website.  Had to have my web provider do it manually.

  • AudioElement causes an error in Flex 4

    Greetings,
    A few days ago Ryan and Brian helped me to patch the problem wtih importing video into Flex by using the 'loadForCompatibility' flag.
    This morning I ran into similar problem with audio: the SWF that uses simplest OSMF player plays fine in the Flash CS5 and in the standalone FlashPlayer. Once I import the SWF into Flex 4, even with the SWFLoader flag 'loadForCompatibility' set to 'true', I get this error:
    Here is the code for the simplest audio player class (by the way, for some unclear reasons getter/setter didn't work, so for the test case I had to set the variable as 'public' ):
    package
    import flash.display.Sprite;
    import org.osmf.media.MediaPlayer;
    import org.osmf.media.URLResource;
    import org.osmf.elements.AudioElement;
    public class LightAudioElement extends Sprite
    public var audioPlayer:MediaPlayer;
    public function LightAudioElement(aSource:String)
    var resource:URLResource = new URLResource(aSource);
    var audioElement:AudioElement = new AudioElement(resource);
    audioPlayer = new MediaPlayer();
    audioPlayer.media = audioElement;
    audioPlayer.autoRewind = true;
    And here is the code for the SWF:
    import LightAudioElement;
    import flash.events.MouseEvent;
    var snd:LightAudioElement = new LightAudioElement('assets/Test.mp3');
    snd.audioPlayer.autoPlay = false;
    //Standard Button component dragged on the stage for this quick test
    sndBtn.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent):void
    if(snd.audioPlayer.playing)
    snd.audioPlayer.stop();
    else
    snd.audioPlayer.play();
    Once again, it works fine in both Flash CS5 and standalone FlashPlayer, but produces an error in Flex 4. I'm on OS X 10.6.3, the Flex SDK 4.0
    Thanks in advance for any suggestions,
    FTQuest

    Hi,
    First, and foremost. As Brian Riggs - who is ultimate authority on the subject - has said:
    I'd advise against replacing Flex's OSMF.swc with the latest one.  The reason is that the Flex SDK integrates with OSMF APIs from a much earlier sprint, and in the latest OSMF SWC many of these APIs don't exist anymore (due to renaming).
    And that's what I take seriously.
    Yet, out of curiosity, and for the sake of exploration I took my chances and did replace the version of the OSMF that is shipped with the Flex 4.0 release with the latest - 0.95.
    So far, all the functionality that I need - single player, multiple players, compiled in Flash, compiled in Flex, playing in synch, or alternating - seems working fine, including access to various events.
    Let me repeat: this is NOT a suggestion; just mere sharing of experience, and it comes at a cost - you should use your versions of video player, i.e. built in that latest version of OSMF. The Spark VideoPlayer (or VideoDisplay) give you compile time error I mentioned before - TimeDimension.
    Just FYI,
    FTQuest

  • PHP errors not displaying

    While editing my web page i noticed that when i have a PHP error on the site, firefox simply does not attempt to open the page. Like, if im on yahoo, and type in the pages URL, it will start loading it then stop and stay on yahoo (for example). Ive loaded firefox via another user profile and tried it in chrome as well and the error displays as wanted. Ive turned off all addons and extensions in my default user profile and still get the same issue.
    I know that simply creating a new user profile will fix the issue, however i have a LOT of saved passwords, bookmarks, ect that id rather not start over with. Anyone have any ideas of an option that blocks this?

    OK, I got it to work.
    I went to Help->Troubleshooting Information.
    In the upper right corner, I clicked the Reset Firefox button.
    When it came back up, the PHP error messages were finally being displayed from my test file. Some of the options (tab and toolbar settings, etc) were set back to defaults, but all my bookmarks were intact. Not sure about passwords and history, but I'd guess it's OK.
    Good luck.

  • Getting the error : ERROR:   FND FLEX-DSQL EXCEPTION  : An unexpected error

    Hi Gurus,
    I have setup one WebADI solution to upload the Direct Deposit information in the system and it is assigned to one responsibility called "US HR Payroll User", user is trying to upload the multiple accounts for one employee and getting the following error:
    ERROR: FND FLEX-DSQL EXCEPTION : An unexpected error has occurred. Please inform your system administrator that the error: &MSG occurred when the FND_FLEX_SERVER package tried to execute the SQL statement below. If tables or sequences do not exist this may indicate a problem with your installation. Make sure grants and synonyms exist so that all tables, views, and sequences in the SQL statement are visible from the database account in which the FND_FLEX_SERVER package resides (usually APPLSYS). If this is a select statement and the last portion of the where clause is in incorrect, then an invalid where clause may have been supplied in the flexfield definition. The error is probably either in the form, or in a server-side package that calls the flexfield validation routine. SQL statement (first 1000 bytes): &SQLST
    When I try to upload using my pc it works fine I have excel 2000 on my system. Then I tried on my friends computer who is having Excel 2003 and there also it gave the same error. So I thought Excel Version is a problem but when we try to upload the same data on some other instances it worked fine.
    Has anybody faced such kind of issue or can throw some lights as what other options I can try ?
    Thanks
    Rahul

    Hi ,
    Thanks for your help.
    Application Release : R12.1
    DB Version: 11g
    Browser: IE : 6.0.2900....
    I tried to take the TRACE but I am not able to generate the log/trace. I set the following profile as per the given note:
    BNE Server Log Filename --> MISPAY_DD_UPLD.log
    BNE Server Log Level --> TRACE
    BNE Server Log Path --> /u04/oraout_db/gsiau_rgts/gsi2au/trace
    but it does not generate any trace or log. Could you please help how we can get the trace.
    Thanks
    Rahul

  • How to avoid  specified is out of bounds error in flex 4 mxml web application

    how to avoid  specified is out of bounds error in flex 4 mxml web application
    hi raghs,
    i  want to add records in cloud.bt while adding the records if we enter  existing record details and try to save again na it wont allow to that  record.
    that time the alert box  should show this msg "This record is already existing record in cloud database.
    ex:  one company name called mobile. i am adding a employee name called raja  now i save this record,its data saved in     cloud DTO
      again try to add same employee name raja under the same compny means it should through error.
    I am give my code here please if any suggession tel.
    CODE:
    private function saveRecord():void
                refreshRecords();
                model.employeeDetailsReq=new EMPLOYEEDETAILS_DTO();
                    var lengthindex:uint=model.employeeDetailsReqRecordsList.length;
                    var i:int;
                    for (i = 0; i < lengthindex; i++)
                    if((model.employeeDetailsReqRecordsList.getItemAt(lengthindex).employ ee name==customerdet.selectedItem.employeename)&&
                          (model.employeeDetailsReqRecordsList.getItemAt(lengthindex).employeeN    umber==customerdet.selectedItem.employeeID)){
                        Alert.show("you cannot Add Same CustomerName and Invoiceno again");
    (when this line come the error through like this: Index '8' specified is out of bounds.
    else
    var dp:Object=employeedet.dataProvider;           
    var cursor:IViewCursor=dp.createCursor();
    var employeename:String = employeename.text;
             model.employeeDetailsReq.employename = employeename;
    model.employeeDetailsReq.employeeNumber=cursor.current.employeeID;
    var sendRecordToLocID:QuickBaseEventStoreRecord = new
                        QuickBaseEventStoreRecord(model.employeeDetailsReq, new
                            KingussieEventCallBack(refreshList))
                    sendRecordToLocID.dispatch();
    <mx:Button   id="btnAdd" x="33" y="419" enabled="false" label="Add" width="65"   fontFamily="Georgia" fontSize="12" click="saveRecord()"/>
    employeename and employeeID are datafields of datagrid. datagrid id=customerdet
    employeeDetailsReqRecordsList---recordlist of save records
    Thanks,
    B.venkatesan

    I do not know for sure as to how to do this, but I found this on Adobe Cookbook
    http://cookbooks.adobe.com/post_Import_Export_data_in_out_of_a_Datagrid_in_Flex-17223.html
    http://code.google.com/p/as3xls/
    http://stackoverflow.com/questions/1660172/how-to-export-a-datagrid-to-excel-file-in-flex
    http://wiredwizard.blogspot.com/2009/04/nice-flex-export-to-excel-actionscript.html
    This has a demo that works
    http://code.google.com/p/flexspreadsheet/

  • How can i use C/Javascript/php/Java in flex?

    can i embed these language into my flex project?
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    please help~

    saipanBETTY0509 wrote:
    Subject: How can i use C/Javascript/php/Java in flex?
    can i embed these language into my flex project?
    You can't.  Why do you want to do this?
    saipanBETTY0509 wrote:
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    I think what this means is "I want to check to see how much hard disk space is available.  Also, I need to check the pixel dimensions of an image."
    Is that right?
    There is no way in the Flash Player (as far as I know) that you can determine the amount of free disk space.  However, in AIR you can use air.File.applicationStorageDirectory.spaceAvailable to determine the storage space available in the application storage directory.
    As far as determining the dimensions of an image, there are plenty of good resources out there on that.  Maybe this one will be helpful to you?
    http://www.yswfblog.com/blog/2008/12/22/flash-10-experiments-the-warholizer-loading-and-pr ocessing-local-images/
      -Josh

  • Can't log php errors.

    I installed php 5.2.5 per the instructions on this page:
    http://switch.richard5.net/isp-in-a-box-v2/installing-php-on-mac-os-x/
    I've also installed Apache 2.2.8 and MySQL 5.1.24.
    Everything seems to be working fine, except for one strange problem. I cannot log php errors.
    I have edited my php.ini file so that
    error_log = "/Library/PHP5/logs/php_error.log"
    ... and I have set the permissions on the php_error.log file to 777.
    I have created a test .php file with deliberate errors, but none of the errors show up in the php_error.log file. The test error I am using is "if ($undefinedvariable) { do something }"
    No php error messages are showing up in Apache's log file.

    I contacted Richard Valk, and he suggested checking where my installation of PHP expected the php.ini file to be, by creating a script file to run the phpinfo() command. I found out that my installation expected php.ini to be in /Library/PHP5/lib/, and it was actually in /etc/. I don't remember if I moved it there or what exactly.
    I copied the php.ini file to /Library/PHP5/lib/, toggled Apache, and php error logging works now.
    Big thanks to Mr. Valk!

  • Command To Run The PHP Error Files

    Nothing I've found is working.
    Does anyone know what the command is?
    Thank you.

    MJN1812 wrote:
    Nothing I've found is working.
    Does anyone know what the command is?
    Unless I don't understand what a "PHP error file" is, your topic post makes it seem that you feel the "PHP error files" are executable, which is presumably not the case. Please describe in more detail what you really want to do.

  • Flex 4 with php error.

    Hi all, i'm connecting a flex application with database MySql, for that i'm using PHP as server side language. I followed a tutorial and created php class and tested. I'm getting the error at last step. This is what i did,
    1) create a php class name.php
    <?php
    * This sample service contains functions that illustrate typical
    * service operations. This code is for prototyping only.
    *  Authenticate users before allowing them to call these methods.
    class name {
      var $username = "root";
      var $password = "";
      var $server = "localhost";
      var $port = "3306";
      var $databasename = "test";
      var $tablename = "names";
      var $connection;
      public function __construct() {
        $this->connection = mysqli_connect(
                           $this->server, 
                           $this->username, 
                           $this->password,
                           $this->databasename,
                           $this->port
        $this->throwExceptionOnError($this->connection);
      public function getNames() {
         $stmt = mysqli_prepare($this->connection,
              "SELECT
                  names.firstname,
                  names.middlename,
                  names.lastname
               FROM names");    
          $this->throwExceptionOnError();
          mysqli_stmt_execute($stmt);
          $this->throwExceptionOnError();
          $rows = array();
          mysqli_stmt_bind_result($stmt, $row->firstname, $row->middlename,
                        $row->lastname);
          while (mysqli_stmt_fetch($stmt)) {
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->firstname, $row->middlename,
                        $row->lastname);
          mysqli_stmt_free_result($stmt);
          mysqli_close($this->connection);
          return $rows;
       private function throwExceptionOnError($link = null) {
        if($link == null) {
          $link = $this->connection;
        if(mysqli_error($link)) {
          $msg = mysqli_errno($link) . ": " . mysqli_error($link);
          throw new Exception('MySQL Error - '. $msg);
    2)   Through data wizard, connect php and linked php class, it showed the methods and went to final step.
    3) Created a datagrid in flex, then dragged and droped getNames() to the datagid, then i configured return type. The datagrid then changed its fields to MySql table.
    4) Here was the problem, when i ran the application, it showed a error in this line,
    <fx:Script>
                        <![CDATA[
                                  import mx.controls.Alert;
                                  import mx.events.FlexEvent;
                                  protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                                            getNamesResult.token = name.getNames();
                        ]]>
              </fx:Script>
    Error - 
    Description
    Resource
    Path
    Location
    Type
    1061: Call to a possibly undefined method getNames through a reference with static type String.
    flexphp.mxml
    /flexphp/src
    line 13
    Flex Problem
    I'm new to flex, so wondering where exactly is the problem?
    I did traced back few steps, like followed Control+click on getNames(), but it took me to actionscript file and everything seemed perfect. Since you guys have experience, hope you would throw some light on error. Thanks!

    This appears to be a Flex question. please try posting it in the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion

  • Channel Definition Error in Flex Remoting

    Hi,
    Any help would be Appreciated. I am using Flex 2.0 and
    webborb 3.3 for flex remoting. I have created a flex project in
    Flex Data services method. After creating the project it is
    throwing an error
    "Channel defintion, weborb.messaging.weborbMessagingChannel,
    cannot be found". But When Try to do the above process using weborb
    3.1. It is working fine.
    Can anybody help me to solve this issue.

    Ok, solved the problem. Found answer from here:
    http://forum.fluorinefx.com/viewtopic.php?f=9&t=3
    I installed LCDS Express and then added fds.swc to my project
    from LCDS-folder.

  • Errors in Flex Libary

    Dear Flexer,
    I developed in Flex since 1.5,I recently Start using Flex
    Libary Project in F3 for my general used functions and components,
    but I feel like I've arrived in some sort of DLL hell. Added the
    library trough library path (project). The whole concept works
    great. But when I edit the library project and make a error, for
    example: var asdf:Stringgg = "should return a error"; It's runs my
    project just fine and doesn't give any error when saving (build?)
    my library project. How can i get around this problem?
    Thanks in advance,
    Mikachu

    thanks, I also figured it out. Fatal errors and notices in php are not supposed to be cought cause they shouldn't be there in the first place. And handling Exceptions should be with a try catch with a proper response for flash to handle when using a normal request. When using an amf service you can do that via the fault event, it has the data of the PHP Exception.

  • How to configure PHP Server with Flex

    Hello everyone,
    I am trying to create new flex application with PHP as server option.
    but on the Configure PHP server window it gives error as
    " You must enter a valid root URL."
    I am usingh xampp as php server, and i have changed the port no of apache to 90.
    so my web root is //localhost:90
    \xampp\htdocs\phpProject-debug
    Can anyone help me to configure the PHP server with Flash builder 4
    I am not using Zend server...

    Hello Rupesh,
    You need to specify full url like this "http://localhost:90/" and need to start server before validating.
    This check may be missed by you.
    Thanks,
    Vikram

  • Muse form is not working on godaddy and no error message indicating a php error is occuring. Could something else be wrong? Do I have to manually set the form once loaded to go daddy to direct through their mail form system?

    I have read in multiple places on the forum that muse forms are now supported on third party platforms. however I am having a very difficult time getting mine to work on Godaddy. They seem to no longer have the "form mailer" option and told me to look at this PHP: mail - Manual to make the forms work. Muse is not giving any error messages indicating that there is a problem on the go daddy end, the form appears to function but no message is received at email address. can anyone help troubleshoot this for me.
    Thanks.

    Hey Sanjit & Brad,
    Thanks for getting back to me. So, I tried changing the address as Sanjit suggested, and yes an error message came up. But then I tested Brad's theory and looks like the form works with another email address other than that of the actual website email:( So I guess based on Brad's link I should reroute the form to the other (non-godaddy) email...or contact go-daddy to see if they can correct this? Would that be the final answer?
    Thanks again!

  • File not Found Error in Flex APP-MDI

    Hi Friends,
    In my Flex APP-MDI application  have error.Th error is given blew.How can i solve this problem,please any one help to me.
    Error:
    File not found: file:/C:progmfiles/AdobeFlashBuilderBeta2/amdiBasicExample_1_1_1/bin-debug/amdiBasicExamp le.html
    Thanks,
    Magesh R.

    You would do better to ask this in the developer forum, not the user forum.

Maybe you are looking for

  • How can I transfer Voice Memos from my iPhone to my computer?

    Dear Iphone users, I have a very nice Iphone. I know how to transfer the pictures on my Iphone to my computer but I do not know how to transfer my "audios" (from the "dictaphone" function in French). How can I do that ? Thank you very much

  • Relationship between material type and industry sector

    Hi experts when using t-code mm01,there are two fields material type and industry setor in screen.Is there any relationship between material type and industry sector? I want to know if user be able to see the material type related to particular indus

  • Loading incremental data

    Hi, I am using 11.1.0.7 DB with 11.1.0.7B AWM. I would like to load data incrementally. Some time my fact data contains tuples which are loaded before (corrections/re statements) and when i load incrementally then it just replaces the existing tuple

  • Why is my iPad 2 cropped photo fuzzy?

    I used to be able to crop pictures with no problem.  Got an os update last night.  Now when I edit & crop a photo, it becomes pixelated & fuzzy when I hit save.  What's the deal?

  • JSR Portlets

    hi all can anyone tell me how to create custom portlet modes... i have defined it in the deployment descriptor portlet.xml as follows <supports> <mime-type>text/html</mime-type> <portlet-mode>edit</portlet-mode> <portlet-mode>about</portlet-mode> <po