While I am testing my application, I find out every time I after update the data to the database. A annoying fault message is popup.
Which is said
Channel disconnected before an acknowledgement was received
I check the database, test the php script, check the network monitor, even rewrite the service caller (dont know what its name)
<dataservice:DataService id="dataservice2" fault="Alert.show(event.fault.faultString + '
' + event.fault.faultDetail + '
' + 'dataservice')" showBusyCursor="true"/>
And even create a new application just to test that component. But, every things are working and the database had received correct data set and I still cannot Identity where that message is come form.
How can I find the source of this message???
I found out the error cause by the PHP script. While I look at the PHP error log file, I found out Flex is not displaying the variable reference error which is like this
PHP Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\fypweee_admin\FYPadminSideV3-debug\services\StockproductService.php on line 238
If you are using XAMPP, the error log file will be at [your hard disk name]:\xampp\php\logs1
.
Since the php script still mysteriously dispatch the data set to the database and I think I will leave that error (for now).
1.put the folders inside your project
(i).flex-spreadsheet(folder)
(ii).amfphp-spreadsheet(folder)
2.Then open the file
for xamp=> \htdocs\projectname\flex-spreadsheet\properties\ApplicationSettings.properties
for wamp=> \www\projectname\flex-spreadsheet\properties\ApplicationSettings.properties
3.Make the first line as
serverpath=http://192.xxx.x.xxx/projectname/amfphp-spreadsheet/gateway.php
**or**
serverpath=localhost/projectname/amfphp-spreadsheet/gateway.php
This works for me.