Hello, I am writing this to warn you and because I haven't selected yet witch solution to choose , so your opinion is more than welcomed. The problem: in some version of iPhone / iPad software the cookies aren't separated by “;” but by comma and doubled. The first fatal to that is exception '_Exception_FatalError' with message 'session_start(): The session id is too long or contains illegal characters The cookie that caused was “PHPSESSID=ea4fee7dcf4446d5cd61aabab13a0df2,PHPSESSID=ea4fee7dcf4446d5cd61aabab13a0df2” PHP parses that like PHPSESSID is “ea4fee7dcf4446d5cd61aabab13a0df2,PHPSESSID=ea4fee7dcf4446d5cd61aabab13a0df” that of course is illegal. The problem occurs in these devices + software (with * is all that have …

Member Avatar
Member Avatar
+1 forum 3

How can I catch and log PHP fatal errors in CodeIgniter? if (defined('ENVIRONMENT')) { switch (ENVIRONMENT) { case 'development': error_reporting(E_ALL); ini_set('display_errors', '1'); break; case 'testing': case 'production': error_reporting(0); break; default: exit('The application environment is not set correctly.'); } } When environment is set to production and there's a fatal error, I just get a white screen. If the environment is set to development, the error gets displayed in the browser but it doesn't get logged. I have error logging enabled but it only catches PHP notices and warnings.

Member Avatar
Member Avatar
+0 forum 5

hello. i got this error and i have no idea why or what is going on. could someone explain in layman's term please and help me out. > Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'event_id' cannot be null' in /home/dhsbnet/public_html/ems/add_guest.php:36 Stack trace: #0 /home/dhsbnet/public_html/ems/add_guest.php(36): PDOStatement->execute() #1 {main} thrown in /home/dhsbnet/public_html/ems/add_guest.php on line 36 code being referred to, line 36 is $guests->execute() : if(isset($_SESSION['sess_user_id'])) { if(isset($_POST['save'])) { require "connection.php"; $name = $_POST['guest-name']; $event = $_POST['event']; $session = $_SESSION['sess_user_id']; $status = ""; $status .= "0"; $guests = $dbh->prepare("INSERT INTO guest(guser_id,guest_name,event_id,status) VALUES (?,?,?,?)"); for($i = 0; …

Member Avatar
Member Avatar
+0 forum 4

I keep getting Fatal error: Call to undefined function newMyOperatorClass() in C:\wamp\www\KanJ_PHP_Website\KanJ_PHP_Ex2.php on line 17.....here is my code... <html> <head> <title>Justin Kangley Ex2</title> </head> <body> <?php class MyOperatorClass { private $rValue; //declare private property at the class level so all the functions use it //default constructor method (same name as class but no parameters/values passed to the method) public function MyOperatorClass() { //this is the PHP approach to setting class properties $this->rValue = 0.0; } public function add($num1, $num2) { $rValue = $num1 + $num2; return $rValue; } public function subtract($num1, $num2) { $rValue = $num1 - $num2; return $rValue; …

Member Avatar
Member Avatar
+0 forum 1

Fatal error: Call to undefined function curl_init(). in my php.ini() file i removed the semi colon for extension=php_curl.dll and then restarted my xampp server. but its not worked. any idea?

Member Avatar
Member Avatar
+0 forum 2

Hey, I hope all is good in your World, and thank you for reading this. I am having a couple of issues with a bit of script, I struggling to see what is wrong. The script in question is: function date_diff($str_start, $str_end) { $defdate = $str_start ; $str_start = strtotime($str_start) ; $str_end = strtotime($str_end) ; $nseconds = $str_end - $str_start ; $ndays = floor($nseconds / 86400) ; $nseconds = $nseconds % 86400 ; $nhours = floor($nseconds / 3600) ; $nseconds = $nseconds % 3600 ; $nminutes = floor($nseconds / 60) ; $nseconds = $nseconds % 60 ; $retString = "" …

Member Avatar
Member Avatar
+0 forum 2

Disk is part of Raid 5 set. Message is Controller ID: 0 Unrecoverable medium error during recovery: PD 0:3 Location 0xc23a3e. Severity: Fatal How do I block access to the location?

Member Avatar
Member Avatar
+0 forum 1

mu visual studio 2010 is showing a LINK : fatal error LNK1168:not opening exe file for writing

Member Avatar
Member Avatar
+0 forum 2

Hi everyone, im trying to print getAktiva() but it return an error: "Fatal error: Call to protected method indukPerusahaanABC::getAktiva() from context '' in C:\xampp\htdocs\sad.php on line 41" Thanks in advance <?php class indukPerusahaanABC{ protected $nama; protected $jenis; protected $alamat; private $aktivaLancar; private $aktivaTetap; public function __construct($nama, $jenis, $alamat){ $this->nama = $nama; $this->jenis = $jenis; $this->alamat = $alamat; $this->aktivaLancar = 35000000000; $this->aktivaTetap = 55000000000; } public function getNama(){ return $this->nama; } public function getJenis(){ return $this->jenis; } public function getAlamat(){ return $this->alamat; } protected function getAktiva(){ return $this->aktivaLancar+$this->aktivaTetap; } } $induk = new indukPerusahaanABC('CBA', 'Kredit', 'Jakarta Pusat'); echo "Perusahaan Induk: ".$induk->getNama()."<br/>"; …

Member Avatar
Member Avatar
+0 forum 2

Hello, I'm working on a project that needs to be done in PHP, however, everything has to be done locally. To test files that I'm editing I have installed Xampp on my computer. As far as I can tell, I have installed everything properly. When I load up this page, the template appears but I get an error at the bottom saying: [B]Fatal error[/B]: Class 'Templates' not found in [B]testfile.php[/B] on line 4 Here is the page: [CODE] <?php require_once 'test/Templates.php'; Templates::$options['version'] = 3; $page = Templates::factory('Fixed'); $page->titlegraphic = '<h1>Hello world</h1>'; $page->maincontentarea = '<p>Testing the main content area.</p>'; echo $page->toHtml(); …

Member Avatar
Member Avatar
+0 forum 4

please help me here with this problem. dont knwo whats happning. problem is here. require_once ( JPATH_ROOT .DS.'includes'.DS.'mpkorn'.DS.'userauth_include.php' ); $mpkauth = new manage_user_component(); $authorized = $mpkauth->check_loggedin_access(JRequest::getVar( 'option' ));

Member Avatar
Member Avatar
+0 forum 1

Hello, I can't use CURL, $ch = curl_init(); I get the error > Fatal error: Call to undefined function curl_init() I've used `phpinfo()` and found the php.ini directory, > Loaded Configuration File D:\wamp\bin\apache\apache2.2.22\bin\php.ini I've then edited the php.ini file from that directory and removed the semi-colon in-front of extension=php_curl.dll Restarted Apache but am still receiving the error. I'm using Wamp and I know there's another php.ini file in the D:\wamp\bin\php directory, so I've uncommented that line from that file too, restarted Apache and still receive the error. I don't know where to go from here, can anyone advise me please?

Member Avatar
Member Avatar
+0 forum 5

Hi all, I have a simple program: #include<iostream> using namespace std; 6 int main() { char x; do { scanf("%c", x); } while (x != 'y'); return 0; } and for some reason when i gcc test.c i get "test.c:1:20: fatal error: iostream: No such fiel or directory compilation terminated." I had a look around but couldn't find oput what the problem is. This is the first time I have used gcc to compile since i installed so could the iostream fiel be missing :S? Please help. Thanks

Member Avatar
Member Avatar
+0 forum 10

Hello, I have this code which grabs url from a webpage, when i add multiple urls, sometimes some of the webpages does not have images in the div that i mentioned in this php code so it returns with this error : Fatal error: Call to a member function find() on a non-object in /home/liferock/public_html/testbox.co.cc/9gag/index.php on line 14 Live URL of the Code http://testbox.co.cc/9gag/ The Code http://snippi.com/s/cpsjxn6 Sample URLs, To Test the Script http://9gag.com/gag/0000001 http://9gag.com/gag/0000002 http://9gag.com/gag/0000003 http://9gag.com/gag/0000004 http://9gag.com/gag/0000005 http://9gag.com/gag/0000006 http://9gag.com/gag/0000007 http://9gag.com/gag/0000008 http://9gag.com/gag/0000009 http://9gag.com/gag/0000010 http://9gag.com/gag/0000011 http://9gag.com/gag/0000012 http://9gag.com/gag/0000013 http://9gag.com/gag/0000014 http://9gag.com/gag/0000015 http://9gag.com/gag/0000016 http://9gag.com/gag/0000017 http://9gag.com/gag/0000018 http://9gag.com/gag/0000019 http://9gag.com/gag/0000020 http://9gag.com/gag/0000021 http://9gag.com/gag/0000022 http://9gag.com/gag/0000023 http://9gag.com/gag/0000024 http://9gag.com/gag/0000025 http://9gag.com/gag/0000026 http://9gag.com/gag/0000027 …

Member Avatar
Member Avatar
+0 forum 5

I add a html page to the php website. After added, the webpage can run correctly, but thers is a line said Fatal error: Class 'EquipmentPage' not found in E:\2012\SIM Suite Project\wamp\www\test1\Web\equipment.php on line 7 at the bottom of the page. Can any one help me solve this problem. equipment.php <?php define('ROOT_DIR', '../'); require_once(ROOT_DIR.'Pages/EquipmentPage.php'); $page = new EquipmentPage(); $page->PageLoad(); ?> equipmentPage.php <?php require_once(ROOT_DIR . 'Pages/SecurePage.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Equipment</title> <!-- Uncomment if you don't use the .htaccess --> <!-- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> --> <meta name="description" content="Designa, HTML5 CSS3 Template by Sylvain Lafitte"> <meta name="author" content="Sylvain …

Member Avatar
Member Avatar
+0 forum 3

I keep getting an error when I try to instantiate the ArrayIterator class within a name space [CODE]$a = new ArrayIterator; //works just fine namespace test; $a = new ArrayIterator; //get error //Fatal error: Class 'test\ArrayIterator' not found in /www/ on line 3[/CODE] I've been searching the web for hours now and I still can't find a solution to solve this problem.

Member Avatar
Member Avatar
+0 forum 1

[CODE]Hi, I need some help! Not sure if this is the right spot to post this, so forgive me if this could have been posted in a better place. This is the error I'm receiving when I try to edit an article from the frontend, as a Publisher. Fatal error: Call to a member function get() on a non-object in ... /vsc/plugins/editors/ckeditor.php on line 628 JCE works just fine, when I'm logged in as the administrator from the backend. I get the same error when I try to use TinyMice or JCE. Sorry for the big long files ... but …

Member Avatar
Member Avatar
+0 forum 2

The End.