fatal-error

AVAudioPlayer working on Simulator but not on Real Device

为君一笑 提交于 2019-12-02 03:30:32
问题 While I play recorded Audio I get this error: fatal error: unexpectedly found nil while unwrapping an Optional value on this line of code: SoundPlayer = try AVAudioPlayer(contentsOfURL: getFileURL()) But it is working perfectly on Simulator except real device. ViewController.Swift: import UIKit import AVFoundation class ViewController: UIViewController, AVAudioPlayerDelegate, AVAudioRecorderDelegate { @IBOutlet var PlayBTN: UIButton! @IBOutlet var RecordBTN: UIButton! var soundRecorder :

Warning: require_once(includes/EliteScript.php) [function.require-once]: failed to open stream: No such file or directory in

会有一股神秘感。 提交于 2019-12-02 03:15:37
问题 This is a licence based script and it has a valid licence using SourceGuardian. The script was working fine on client's old server and he hired me to migrate it to the new server. After migrating, everything was working fine but not the login area, when trying to login it gives the follow error Warning: require_once(includes/EliteScript.php) [function.require-once]: failed to open stream: No such file or directory in /home/sitetalk/public_html/interface/index.php on line 3 Fatal error:

Why does fopen fail within a register shutdown function?

馋奶兔 提交于 2019-12-02 02:30:18
I am working on a site in a shared host. I don't have access to the PHP ini file, or the PHP ini_set function, and I can't use php_flag or php_value directives. I'm using the set_error_handler function to log most errors, and trying to use the register_shutdown_function to log fatal ones. I've tried several of the solutions for catching fatal errors here: How do I catch a PHP Fatal Error . I can successfully use the solutions there to either display the errors on screen or bring up a custom error page, and to log non-fatal errors, but I can't seem to log the fatal errors. This is simplest

AVAudioPlayer working on Simulator but not on Real Device

落爺英雄遲暮 提交于 2019-12-02 02:17:15
While I play recorded Audio I get this error: fatal error: unexpectedly found nil while unwrapping an Optional value on this line of code: SoundPlayer = try AVAudioPlayer(contentsOfURL: getFileURL()) But it is working perfectly on Simulator except real device. ViewController.Swift: import UIKit import AVFoundation class ViewController: UIViewController, AVAudioPlayerDelegate, AVAudioRecorderDelegate { @IBOutlet var PlayBTN: UIButton! @IBOutlet var RecordBTN: UIButton! var soundRecorder : AVAudioRecorder! var SoundPlayer : AVAudioPlayer! var fileName = "audioFile.m4a" override func viewDidLoad(

PHP: I get a completely blank page, I don't know how to debug this in PHP

落花浮王杯 提交于 2019-12-02 02:12:48
I'm having some issues to debug this in php. When I include this line: require_once("http://" . $_SERVER["HTTP_HOST"] . "/dompdf/dompdf_config.inc.php"); what I get is just a blank page, I don't get any html code as response. Maybe the error messages are hidden ? You should not require/include a remote file like this. Instead provide the local absolute or relative path. Though insecure and not recommended, it is technically possible to do if certain configuration options are set. (allow_url_include) See other answers below regarding display_errors for future debugging concerns. I often use the

Android Custom Button State Selector XML file causing Resource$NotFoundException

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 23:24:51
问题 My Activities are randomly crashing due to Resource$NotFoundException and it's always due to one of my custom button's state selector files. And the crashes are completely random, I'll go through the entire app multiple times with no crashes, and then go to an Activity for the nth time, and then it'll throw the exception. Stack Trace: 07-12 11:12:18.469 2086 2086 D AndroidRuntime: Shutting down VM 07-12 11:12:18.469 2086 2086 W dalvikvm: threadid=1: thread exiting with uncaught exception

Warning: require_once(includes/EliteScript.php) [function.require-once]: failed to open stream: No such file or directory in

我怕爱的太早我们不能终老 提交于 2019-12-01 22:44:47
This is a licence based script and it has a valid licence using SourceGuardian. The script was working fine on client's old server and he hired me to migrate it to the new server. After migrating, everything was working fine but not the login area, when trying to login it gives the follow error Warning: require_once(includes/EliteScript.php) [function.require-once]: failed to open stream: No such file or directory in /home/sitetalk/public_html/interface/index.php on line 3 Fatal error: require_once() [function.require]: Failed opening required 'includes/EliteScript.php' (include_path='.:/usr

“Can't use function return value in write context” error in PHP

牧云@^-^@ 提交于 2019-12-01 22:13:12
Fatal error: Can't use function return value in write context in line 3, In which cases such errors get triggered? My program: //QUERY VARIABLE $query="select * form user where user_name='$user_name' and user_password='sha($user_password)'"; //ESTABLISHING CONNECTION $result=mysqli_query($dbc,$query)or die('Error Querying Database'); while($row=mysqli_num_rows($result)==1) { //SET COOKIE setcookie('user_name',$row['user_name']); setcookie('user_id',$row['id']); $query="select * form user"; $result=mysqli_query($dbc,$query)or die('Error Querying Database'); $page_url='http://'.$_SERVER['HTTP

Android Custom Button State Selector XML file causing Resource$NotFoundException

北慕城南 提交于 2019-12-01 21:16:35
My Activities are randomly crashing due to Resource$NotFoundException and it's always due to one of my custom button's state selector files. And the crashes are completely random, I'll go through the entire app multiple times with no crashes, and then go to an Activity for the nth time, and then it'll throw the exception. Stack Trace: 07-12 11:12:18.469 2086 2086 D AndroidRuntime: Shutting down VM 07-12 11:12:18.469 2086 2086 W dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x400208b0) 07-12 11:12:18.508 2086 2086 E AndroidRuntime: FATAL EXCEPTION: main 07-12 11:12:18.508

Fatal error: Maximum execution time of 400 seconds exceeded

眉间皱痕 提交于 2019-12-01 21:11:50
I have a PHP script that fails when executing a long mysq_query. The error message is: Fatal error: Maximum execution time of 400 seconds exceeded in.... I use XAMPP for windows and I have changed the php.ini file (there is only one in my installation), setting max_execution_time to a large value that is not 400 seconds. Nevertheless I keep getting the error message above.... Any idea of how to solve this? Thanks Beto As Ignacio says, something may be overriding the php.ini setting. You can definitively set the timeout for that script using set_time_limit set_time_limit(600); You can also set