php,mysqli,fatal-error,easyphpRelated issues-Collection of common programming errors


  • Iain
    apache-2.2 php centos suphp
    We have a server that’s handling uploads. The memory limit is set at a ridiculously high level in php.ini (800 M).. however we have gd, which is managing the image resizing, but it is dying at about 60M of memory usage (our error log is reporting a fatal error at this stage).From all our Apache config files (CPanel/WHM managed), I can’t find a RLimitMem that’s set anywhere either.I’ve looked as well if there’s any limits set in our kernel, but can’t find anything there as well.Is there somethin

  • Haresh Vidja
    ubuntu php wordpress
    I have moved my server data PHP + WordPress and database(mysql) from one server to another server… All things working fine… but some time i got page blank in click submit button.. This problem occures some time ..I didnt get any error or fatal error in errorLog file and not get access entry in accsessLog file also on time of blank page.. Black page issue occurs some time on same taskSo how can I fix this problem..

  • Scott Pack
    apache-2.2 php centos
    So the same code works on my Ubuntu server but when I upload it to my dedicated hosting server running CentOS it seems to add an extra prefix of .:/usr/share/pear:/usr/share/php: I tried setting includepath to different things but it just doesn’t work. The file is in a directory called language in the same folder as the file that is including it and I’m using:include dirname(__FILE__).DIRECTORY_SEPARATOR.”language”.DIRECTORY_SEPARATOR.”storage.inc”; include dirname(__FILE__).”/language/language.

  • mike
    php cpanel pdo
    Getting this error: Fatal error: Class ‘PDO’ not foundHave these lines in php.ini:extension=pdo.so extension=pdo_sqlite.so extension=sqlite.so extension=pdo_mysql.soThis shows up in php.info()– –enable-pdo=shared’ ‘Have access to whm but there is no “software” tab from which to access easyapatche? Any suggestions??

  • Mahbubur R Aaman
    php centos zend-framework
    Shows PHP Fatal Errormain(): Failed opening required ‘Zend/Loader.php’I have installed ZF on /usr/share/phpzf command is working. I can create project and do other works using zf command. But while including the library path then shows the error.Am i missing something?

  • Passionate Developer
    apache-2.2 php
    I am getting below errors despite setting memory_limit in php.ini to 64mb:Fatal error: Out of memory (allocated 6291456) (tried to allocate 91284 bytes) in /home/favstayc/public_html/coverbuddy2/cake/libs/configure.php on line 1067What could I change to fix this issue?

  • BlaM
    php iis7 stdout stderr
    Okay, this is slowly getting annoying. I’m used to work with Apache Webservers and never had any of these problems. IIS seems to try to be intelligent – or whatever.Here’s my situation: My customer wants a PHP website and it is supposed to run on an Windows IIS webserver.For my development environment I could use my Apache – but just to be sure I want to do it with IIS, too. So I set up a dev-server with Windows Vista, all the latest Updates and installed IIS. Everything fine!I quickly found ins

  • WerkkreW
    apache-2.2 php varnish
    We recently migrated our site to a load balanced apache cluster behind varnish. Since that time a very small subset of users is reporting they cannot view any pages. I have narrowed the issue down quite a bit. This issue was not present before the move, the old infrastructure was a single large box.We are on Rackspace Cloud running 8 apache2 instances behind varnish 3.0 all load balanced using Rackspace Cloud load balancers (Zeus) and 2 mysql instances for a total of 10 servers, all linux.Use

  • Uvais Ibrahim
    php php-extensions pecl expect
    I got some serious error while installing expect extension in PHP.I ran sudo pecl install channel://pecl.php.net/expect-0.3.1I got error like this while running make,running: make /bin/bash /tmp/pear/temp/pear-build-rootvXp7LZ/expect-0.3.1/libtool –mode=compile cc -I. -I/tmp/pear/temp/expect -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootvXp7LZ/expect-0.3.1/include -I/tmp/pear/temp/pear-build-rootvXp7LZ/expect-0.3.1/main -I/tmp/pear/temp/expect -I/usr/include/php5 -I/usr/include/php5/main -I/u

  • Justin808
    php http httpd hostgator
    OK, so I’m uploading a 350meg zip file. The file one uploaded is unzipped and the contents are processed. The processing consists of reading in a data file, then copying and thumbnailing images, the adding data to a database. This is all once process start to finish. I can see in the log that the datafile is processed. I can see on the filesystem the thumbnails get created. But then it looks like the whole this starts over from scratch with blank post data and it fails.When I look at the httpd l

  • tech0925
    mysqli
    I was hoping there is a better way to accomplish the same thing I have here without 24 queries. I have two queries for each month of the year which adds up to 24 separate queries. Please see January’s queries and let me know if there is a way to shorten the amount of queries. Any feedback is welcomed! Thanks!// add Jan’s total closed sales $jan_closed = mysqli_query($mysqli, “SELECT sum(amount) AS total FROM sales WHERE user_id = ‘”.$userid.”‘ AND status = ‘S’ AND MONTH(date) = 1″);while($row =

  • GianlucaDangelo
    php mysqli
    This question already has an answer here:Reference – What does this error mean in PHP?24 answerssomeone can tell me where am I wrong? why i have this message “Fatal error: Call to a member function query() on a non-object” when i try call query function? thank you 🙂 class Connection extends mysqli {protected $user;protected $password;protected $database;protected $host;protected $querymia;protected $link;function __construct($user,$pass,$database,$host){$this->user=$user;$this->password=$

  • Ben F
    mysqli
    So, I’v just finished coding the base for a very simple script I’m working on except it’s returningFatal error: Call to a member function bind_param() on a non-object inC:\wamp\www\gamepal\quoter\includes\function.php on line 26now I’v checked over line 26 and come to the conclusion it’s due to the above prepare failing except I can’t for the life of me workout why it is failing, I’v gone through the steps listed on several pages around about displaying errors, checking the connection etc and It

  • Mike Brant
    php mysqli mysql-error-1064
    Here’s the coderequire_once ‘functions.php’; require_once ‘cfg.php’; $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $db); if ($mysqli->connect_error) {die(‘Connect Error (‘ . $mysqli->connect_errno . ‘) ‘. $mysqli->connect_error); } $query=’SELECT * FROM cobra’; $result=$mysqli->prepare($query); $result->execute(); $result->close(); echo array_values($result);I am getting error after error. Initially I had the query part contained in a function, but kept running into all sorts

  • user1394925
    php mysqli
    I have a block of code below which inserts data into database using mysqli and php. The problem is that I am getting a fatal error stating: Fatal error: Cannot pass parameter 2 by reference in … on line 116Why is this error appearing and how can I fix the error?Below is the code:if ($numrows == 0){$teacherpassword = md5(md5(“j3Jf92″.$teacherpassword.”D203djS”)); $code = md5(rand());$insertsql = “INSERT INTO Teacher(TeacherId, TeacherForename, TeacherSurname, TeacherEmail, TeacherAlias, Teache

  • user3354780
    php mysqli
    This is been driving me crazy. I have a form that always a user to upload products to the database. The form validation and inserting into into the database are on the same page. I have 3 tables in my database categories, pictures and products. So when the user clicks on the insert button I must add the image data to the pictures table and the rest of the data goes to the products table. The pictures tables has a auto increment key called key_id and the products table has a auto increment key ca

  • Daniele
    php mysql apache mysqli phpinfo
    I have a really strange error. My httpd server have been working fine until last Wednesday, when I uninstalled the MS SQL and visual studio C#. When I restarted the PC, Ii discovered that some parts of the Environment variable PATH disappeared…Almost all the problems where recovered, The only one that cannot be adjusted is my httpd server… or the PHP configuration, I don’t know. I have already uninstalled the Apache server, PHP and MySql and resintalled them again… I have done this lots of

  • Lukás Lalinský
    php mysqli prepared-statement
    Hey guys, can any of you find out why I’m getting the above error?$mysqli=new mysqli(“localhost”, “***”, “***”,”***”) or die($mysqli->connect_error);function checklogin($username, $password){global $mysqli;$result = $mysqli->prepare(“SELECT * FROM users WHERE username = ?”);$result->bind_param(“s”, $username);$result->query();

  • teresko
    mysqli php
    I have simple line class autorization extends mysql and it causes Fatal error: Call to a member function close() on a non-object in… On that line is function __destruct(){$this->connection->close();}Constructor$mysqli = new mysqli(*****); $this->connection = $mysqli;at the moment no other methods ot class mysql are not used

  • user1394925
    php mysqli
    I am getting this error in my script which I think is causing the search bar not to work:Fatal error: Call to a member function bind_param() on a non-object in /web/stud/xxx/Mobile_app/previousquestions.php on line 89.The line it is pointing to is this line:$stmt->bind_param(“s”,$each); What needs to be done in order to fix this error? At the moment the error is causing no results to appear after the user has submitted the content within the search bar.<?php//connect to db$questionconte

  • wallyk
    fatal-error php
    How would I write a PHP code that would send me an email everytime I get a Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 14373306 bytes) in on line <b>443</b><br />.I’m running a script wherein a user has this URL and it will be process by my code, but the problem here is that sometimes it results to a Fatal error Allowed memory size exhausted. I want an email to be sent to me that tells me that there has this error at the same time what URL

  • JeanValjean
    php iis fatal-error iis-8 windows-server-2012
    I just upgraded my PHP version after reinstalling the server. A code which worked previously doesn’t work anymore. It tells me about a fatal error.Fatal error: in J:\web\intranet\dologin.php on line 40I checked the lines near that (39-41 are included below) and I can’t see anything which could be wrong.$query = $connection->prepare(“SELECT COUNT(*) FROM users WHERE user = ? AND password = ?”); $query->execute(array($user, $password));$result = $query->fetch();I’m running PHP 5.4.9 on Wi

  • cs_newbie
    java hadoop startup fatal-error
    i am starting my hadoop with 4 slaves and all works fine except for one machine. I have created them the exact same way.the error i receive when running ./start-all.sh is:xxxxx: starting tasktracker, logging to /xxxxx/xxxxx/hadoop/logs/hadoop-xxxxx-tasktracker-xxxxx.out xxxxx: /xxxxx/xxxxx/hadoop/hadoop-0.20/bin/hadoop: line 413: 7012 Aborted nohup $_JAVA_EXEC -Dproc_$COMMAND $JAVA_HEAP_MAX $HADOOP_OPTS -classpath “$CLASSPATH” $CLASS “$@” >”$_HADOOP_DAEMON_OUT” 2>&1 &l

  • Muhammed Refaat
    java xml parsing xml-parsing fatal-error
    I’m have XML data in the shape of String and i want to convert it to XML document in order to make some process in it, and i’m using the following method to make that:private Document convert(String xml) throws ParserConfigurationException,SAXException, IOException {// convert String into InputStreamInputStream is = new ByteArrayInputStream(xml.getBytes());// convert InputStream to DocumentdomFactory = DocumentBuilderFactory.newInstance();domFactory.setNamespaceAware(true);builder = domFactory.n

  • teresko
    php error-handling fatal-error
    In my homemade PHP MVC framework, I’ve written a little error handler that wraps PHP errors in an exception, then throws it.class ErrorController extends ControllerAbstract {…public static function createErrorException($number, $message = NULL, $file = NULL, $line = NULL, array $context = array()) {throw new ErrorException($message, $number, 0, $file, $line);} }Which is then registered using set_error_handler(). This works fine, with the exception (no pun intended) of fatal errors. My custom

  • Sergiy Byelozyorov
    c# fatal-error nlog
    Can I somehow set up an event handler for fatal errors in the code? I would like to terminate the application immediately if such an error happens, i.e. something like this:void Fail(string format, params object[] args) {Logger.Fatal(format, args);Environment.Exit(-1); }However I would like this to happen automatically:Logger.Fatal(…); // logs the error and invokes Environment.Exit(-1);Is there a way to setup some kind of callback for all fatal errors or some configuration option for this?

  • Suheal Pasha
    php mysql codeigniter codeigniter-2 fatal-error
    My CI version is CI2.3. I’m running this php code in my local host. I followed all the steps given there but I’m getting this error don’t know why? and I changed Controller to CI_Controller. Hello world Program worked finely. This link code is not working. please need help!

  • Wendy
    java android onclick onclicklistener fatal-error
    I’m getting a force close error on the line:mReadAgainButton.setOnClickListener(this);and I’m unsure why. I’m simply trying to set an onclick listener for mReadAgainButton however the application is crashing with a fatal exception and very little information in my logcat to suggest what might be causing it. LOGCAT: 09-26 15:44:51.540: E/AndroidRuntime(7918): FATAL EXCEPTION: main 09-26 15:44:51.540: E/AndroidRuntime(7918): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pr

  • Cedric
    php memcached fatal-error
    When I try :$mc= new Memcached();I getFatal error: Class ‘Memcached’ not found in /my/pathphpinfo says that /etc/php5/apache2/conf.d/20-memcached.ini is loaded as an additional .ini file.The content of this file is this one :; uncomment the next line to enable the module extension=memcached.sodpkg –get-selections | grep memcachedlibmemcached6 install memcached install php5-memcached installK

  • Lee
    php memory fatal-error
    Given a large set of unordered images in the format either jpg or png, I wanted to create a PHP script that would firstly filter all folder contents for the allowed formats, copy them to a new folder renamed in numerical order (1.jpg, 2.jpg, 3.jpg ..), create a 50×50 thumbnail of each image in a child folder “thumbs” and then create an .html file called “gallery” which contains a dump of “img” tags of each thumbnail.It works fine up until a dozen or so images and then exceeds the maximum allocat

  • user3002916
    apache easyphp
    I’m running Win 8.1 for 64 bit processor and installed easyPHP-DevServer 13.1 VC11 and MySQL 5.6.12 update.I’m trying to run it locally on my laptop. When I start easyPHP MySQL runs but apache log gives “unexpected error” and stops. I also get “MSVCR110.dll” is missing error. I installed the missing .dll but when I start easyPHP it still can’t find it the .dll. The link for downloading the missing MSVCR110.dll ishttp://search.microsoft.com/en-us/DownloadResults.aspx?rf=sp&q=microsoft%20visu

  • the tao
    easyphp
    Every time I install EasyPHP 13.1VC9 it works for a few days and then at random points when I go to turn it on I get this error and I am unable to start MySQL. I have tried running as Admin, and I have tried editing the permissions. Also, when I go to access MYSQL through PHPadmin I get the following error:#2002 – No connection could be made because the target machine actively refused it.This is what the log files say:2013-06-12 23:47:18 4148 [ERROR] InnoDB: Attempted to open a previously opened

  • jawad waheed
    php apache wamp easyphp
    I tried to install both EasyPHP and Wamp but when I start easyphp it starts sql normally but won’t let me start apache server and gives error “Error in configuration file Edit?” but the same version works fine on my desktop computer and when I tried wamp it just crashes saying “Aestan Tray menu has encountered.. bla bla”. I searched a lot on google but could not find solution to this. Kindly help me removing this error. What could be the possible cause and how could I make it working? I have tri

  • user1740613
    php mysql configuration sql-update easyphp
    I have to update 11M rows from a database in a PHP script.After some time, the script freezes or crashes. I have to restart EasyPHP 12, and reload it.My configuration:Windows 7 Pro 64 bits Intel Core i7 860 2.8Ghz 8G RAMMy my.cnf file : port = 3306 socket = /tmp/mysql.sock[mysqld] port = 3306 socket = /tmp/mysql.sock skip-external-locking key_buffer_size = 384M max_allowed_packet = 1M table_open_cache = 512 sort_buffer_size = 2M read_buffer_size = 2M read_rnd_buffer_size

  • Jerome Ansia
    java mysql google-app-engine hard-drive easyphp
    I have about 600 unit tests for my application. The application uses Google Could SQL but MySQL for local and unit testingEach time that I run the unit test my computer crashes (Freeze) about the middle. I can see that the writes on the hard drive are really high as well.I use EasyPHP for the MySQL Database, OS Windows 8, and GAE is in Java. (8gb of ram) I tried to set the settings to this before launching the unit test suite:set tmp_table_size = 16777216 * 8; set max_heap_table_size = 16777216

  • rkolm_kds
    php apache easyphp
    I run simpleSamlPHP 1.9 on a PHP 5.3.9 installation in EasyPHP, on a Windows XP machine. SimpleSamlPHP is serving as a SAML identity provider, fetching users in a local MySQL database.My problem is that when requesting authentication against this IdP, Apache crashes throwing a “violation access” error, a.k.a. segfault. The problem is similar to this thread except that the child process exits with status 0 (but isn’t this a Windows-specific feature of PHP regarding exit codes ?).The common fix, c

  • Korchkidu
    php drupal easyphp drush
    I am using Drush which is launching php in command line. I copied my initial php.ini in my local directory so that php is using the same configuration as if it was launched by the web server. When used with the web server, it works well. Unfortunately, when launched with the command line, PHP crashes when drush calls mysqli_fetch_array and/or mysqli_fetch_object while everything is fine when calling mysqli_fetch_row… I am using EasyPHP 5.2.10 under windows. Error message: an unhandled win32 ex

  • Seeking Knowledge
    php apache ssl swiftmailer easyphp
    I’ve been trying to send an email using SwiftMailer and a gmail account, but it shows me the famous referrer that no SSL is detectedFatal error: Uncaught exception ‘Swift_TransportException’ with message ‘Connection could not be established with host smtp.gmail.com [Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP? #1351731711]’ in C:\Program Files\EasyPHP-12.1\www\Swift-4.3.1\lib\classes\Swift\Transport\StreamBuffer.php:259 Stack trace: #0 C:\Progr

  • Jared Farrish
    php soap easyphp
    Having searched through the many questions related to this error already posted, I’ve been unable to find an answer.When I try and connect to a URL via soap, it works fine on a Godaddy VPS but fails on my localserver (EasyPHP AMP Stack). Open SSL is enabled as is Soap in php’s ini settings but does anyone know what I’m missing as I guess it’s a config issue?The code I’m running is $gdAuctionsWSURL = ‘http://auctions.godaddy.com/gdAuctionsWS/GdAuctionsBiddingWS.asmx?WSDL’; $gdAuctionsWS = new Soa

  • NullPoi?te? ?
    php openssl easyphp
    Hey guys I’m getting this above exception but couldn’t figure it out completely. I understood that there is some issue related to OpenSSL. I tried to configure it in php.ini but it didn’t work. I’m using easyphp so can any one help me out and provide me with brief description on how to configure the OpenSSL in easyphp?Fatal error: Uncaught exception ‘Exception’ with message ‘The Google PHP API library needs the openssl PHP extension’ in C:\Users\Aditya\Documents\EasyPHP-12.1\www\4\google-api-ph

Web site is in building