fatal-error

Enabling display_errors from inside code

瘦欲@ 提交于 2019-12-25 04:47:31
问题 Our development server has suffered some configuration mismatch on recent update to PHP 5.3, and now I can't see any errors – any time I hit a fatal/parse error, I just see a blank page. Now, I know how to enable error reporting in normal cases, but I don't have access to php.ini and ini_set('display_errors', 1) obviously doesn't cut it if the page has hit a parse error. Is there any other way to set / override php.ini's settings, via .htaccess perhaps? 回答1: Yes, in .htaccess, you can put:

FATAL EXCEPTION: main Unable to start activity ComponentInfo Caused by: java.lang.NullPointerException

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 02:42:36
问题 ERROR: FATAL EXCEPTION: main Unable to start activity ComponentInfo Caused by: `java.lang.NullPointerException` I'm not sure exactly why this is happening. It is crashing app on the line: listView.setOnVideoClickListener((VideoClickListener) this); I have my listview declared in my XML and my Java - so I'm not sure exactly what has gone wrong at this point LOGCAT: 12-04 15:37:10.563: E/AndroidRuntime(9470): FATAL EXCEPTION: main 12-04 15:37:10.563: E/AndroidRuntime(9470): java.lang

How to handle or prevent the fatal error “Fatal signal 11 (SIGSEGV)”

泪湿孤枕 提交于 2019-12-25 02:19:24
问题 Perhapse I am lucky on the fatal error on different signals. For today that was the following: 02-05 20:57:21.827: D/MY_TEST_MESSAGE(4349): Engine.onVisibilityChanged() 02-05 20:57:21.827: D/MY_TEST_MESSAGE(4349): DrawTask #3 is created! 02-05 20:57:21.827: D/MY_TEST_MESSAGE(4349): DrawTas #3 is working! 02-05 20:57:21.837: I/brcm-gr(4349): [gralloc_lock]: new usage 0x903 02-05 20:57:21.837: I/brcm-gr(4349): [gralloc_lock]: new usage 0x930 02-05 20:57:21.877: I/brcm-gr(4349): [gralloc_lock]:

FATAL EXCEPTION: Timer-0 java.lang.NullPointerException

∥☆過路亽.° 提交于 2019-12-24 18:38:45
问题 I'm having a timer in the oncreate() like: final Timer timer1 = new Timer(); timer1.schedule(new TimerTask() { public void run() { sendSMS(); } }, 20000); The methode sendSMS() is like: private void sendSMS(){ float test2; test2 = reallocation.getAccuracy(); //-> This is the line where logcat says.... NullPointerException .... } The logcat says: 05-30 18:32:26.962: W/dalvikvm(741): threadid=9: thread exiting with uncaught exception (group=0x4001d5a0) 05-30 18:32:26.972: E/AndroidRuntime(741):

PHPExcel Class 'PHPExcel_Worksheet' not found

 ̄綄美尐妖づ 提交于 2019-12-24 13:30:31
问题 I got the following error when importing PHPExcel into my framework: Fatal error: Class 'PHPExcel_Worksheet' not found in /var/www/library/phpexcel.class.php on line 109 I am autoloading my classes including PHPExcel but it looks like PHPExcel uses spl_autoload_register to register any existing autoloader functions with SPL. I also tried echoing the files as they were being loaded and got /var/www/library/PHPExcel/Shared/ZipStreamWrapper.php /var/www/library/PHPExcel/Shared/String.php Fatal

getting posts from Wordpress to out of WP in codeigniter view

会有一股神秘感。 提交于 2019-12-24 12:12:58
问题 I use codeigniter and need to display last 3 posts at footer from blog as blabla.com/blog located. when I create a test.php file as below. it works well, test.php <?php // Include Wordpress define('WP_USE_THEMES', false); require('./blog/wp-blog-header.php'); query_posts('showposts=3'); ?> <ul> <?php while (have_posts()): the_post(); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> but when I copy same code to footer_view.php of codeigniter

Woocommerce error: Call to undefined function array_replace_recursive()

自闭症网瘾萝莉.ら 提交于 2019-12-24 08:57:20
问题 I have been getting this error since I updated my woocommerce plugin: Fatal error: Call to undefined function array_replace_recursive() The errror is on line 586: enter image description here I have found some solutions in this quote here: Fatal error: Call to undefined function array_replace_recursive() for CI Controller solution But the problem is that i really do not know what to change in my code or where, in order fot the error to stop popping up. Any help would be greatly appreciated.

Is there a functional equivalent to mysqli_fetch_all in PHP 5.2?

核能气质少年 提交于 2019-12-24 05:46:07
问题 So, I am a total n00b at PHP (and back-end programming in general), but I never the less decided I wanted to build a functioning database that users could search client-side as th final project for my first web dev class. Anyway, I made my site and database on a localhost, and though it took a while, I got everything functioning perfectly. When I tried to move it to my webhost, however, everything started breaking because, previously unbeknownst to me, the webhost is using PHP 5.2. I've been

XMPPHP to Openfire

怎甘沉沦 提交于 2019-12-24 01:56:16
问题 (This is my first ever question so please excuse the noobness) I have a Ubuntu VPS from DigitalOcean that I have Openfire installed and running. I'm trying to use XMPPHP to send alerts but it doesn't send the message. My Code: include("../XMPPHP/XMPP.php"); $conn = new XMPPHP_XMPP('***.***.***.***', 5222, 'alert', 'password', 'xmpphp', '***.***.***.***', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO); $conn->useEncryption(false); $conn->connect(); $conn->processUntil('session_start');

fatal vs. not fatal error in php?

北战南征 提交于 2019-12-24 00:53:08
问题 I'm wondering what errors are considered fatal vs. not in PHP (though interested in other languages too). Is there a concise explanation and/or listing of each somewhere of error types? Does using the expression "non-fatal" even make sense? The reason I'm wondering is because sometimes when I make PHP errors my $_SESSION (actually using codeigniter sessions) is destroyed whereas in other cases it is not and I can't quite put my finger on why this is happening. 回答1: Well, the naming is pretty