php,xdebugRelated issues-Collection of common programming errors


  • viji
    php email phpmailer
    I use phpmailer for contact form i am new to phpmailer, when submitting the form the below error is appears:Fatal error: Uncaught exception ‘phpmailerException’ with message ‘SMTP Error: Could not authenticate.’ in PHPMailer/class.phpmailer.php:2241Stack trace: #0 PHPMailer/class.phpmailer.php(2003): PHPMailer->SmtpConnect() #1 PHPMailer/class.phpmailer.php(1755): PHPMailer->SmtpSend(‘Date: Thu, 3 Ap…’, ‘–b1_dfece512dd…’) #2 PHPMailer/class.phpmailer.php(1597): PHPMailer->PostSend(

  • user555
    php xml ubuntu
    I’ve searched on the Internet about this error. Somebody told me that my computer is missing lib xml for php. But I don’t know how to install it on Ubuntu 12.04 TLS.

  • Siddesh Bhalke
    php json curl json-decode
    My json data{“total”: 533489,”page”: 1,”pagesize”: 30,”questions”: [{“tags”: [“php”,”html”,”forms”],”answer_count”: 6,”favorite_count”: 0,”question_timeline_url”: “/questions/22075370/timeline”,”question_comments_url”: “/questions/22075370/comments”,”question_answers_url”: “/questions/22075370/answers”,”question_id”: 22075370,”owner”: {“user_id”: 3343981,”user_type”: “registered”,”display_name”: “user3343981″,”reputation”: 3,”email_hash”: “55d0eb4577a0ba9f9e428d445431b595″},”creation_date”: 1393

  • Hossein
    php magento e-commerce
    I have a fresh installation of magento 1.8I have created a category called ‘TEST’when I want to add a Product in ‘Simple Products’ Then I get the following Error.Fatal error: Class ‘Varien_Data_Form_Element_Weight’ not found in C:\xampp\htdocs\testmag\lib\Varien\Data\Form\Abstract.php on line 147I realy don’t Understand whats the reason if I add my product in other types like ‘Grouprd Products’ or ‘Virtual Products’ Then i get no error and every thing goes fine.Any help appreciated.

  • Wolfstein
    php
    I am using jSMSPlugIn.dll found in the net for modem free SMS not sure what I am doing wrong here.Fatal error: Class ‘COM’ not found …. on line 24where in $objComport4= new COM(“jsmsplugin.smsversion1”) or die (“Error on load”);here is my code and I am using Xampp<?php set_time_limit(1000) ;try{$objComport4= new COM(“jsmsplugin.smsversion1”) or die (“Error on load”);$objComport4->SerialPort = “COM6”;$objComport4->Baudrate = 9600;$objComport4->OpenSerialPort();$objComport4->ReadI

  • user3264147
    php mysql twig slim
    I am using Slim with MeekroDB and Twig for my micro-appBrowser returns this fatal error no matter what changes I make:Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\smallHw\vendor\slim\slim\Slim\Slim.php on line 1362Slim.php is a pre-built file, developed by Slim developpers. This is its syntax:public static function handleErrors($errno, $errstr = ”, $errfile = ”, $errline = ”) {if (!($errno & error_reporting())) {return;}throw new \ErrorException($errstr, $

  • Nuno Nogueira
    php joomla joomla2.5
    I’ve just upgraded my Joomla to the version 2.5.16One file with the following code is now returning the error:Fatal error: Class ‘JFactory’ not found in This is the code:<?php$user = JFactory::getUser(); $group_id = &JFactory::group_id(); $user_id = $user->get(‘id’);?>

  • bash_profile blank
    php ftp osx-mountain-lion
    For some reason the ftp_connect() function doesn’t work, when I try to used it it ends with a fatal error stating that this function is undefined… Surprisingly I can still use a ftp client or use an ftp connection through the Terminal. How may I solve this problem ?I run on Mountain Lion et I’ve got the 5.3 php version – I reinstalled it once hoping this would solve my problem.

  • 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

  • user2176252
    php html mysql
    I’m getting following error while I try to upload an image to my website, It worked fine in my localhost but getting this error as i uploaded to WebServerFatal error: Class ‘Ps2\Exception’ not found in G:\WebSpace\siteadress.com\www\classes\ps2\upload.php on line 20my upload.php is as below,<?php namespace Ps2; class Upload { protected $_uploaded = array(); protected $_destination; protected $_max = 102400; protected $_messages = array(); protected $_permitted = array(‘image/gif’,’

  • Joelio
    cakephp-2.0 xdebug phpstorm
    I have phpstorm 6.02 setup and configured for xdebug on osx (mountain lion) apache with a cakephp application.If I set a breakpoint in my “AppController” it stops no problem and works.When I setup a breakpoint in my UsersController, it doesnt stop and I see this error in my logs:2013-06-02 15:07:16 Error: I GOT HERE TO INDEX FUNCTION 2013-06-02 15:07:16 Error: current url is :/users 2013-06-02 15:07:16 Error: Fatal Error (4): parse error in [xdebug eval, line 1] 2013-06-02 15:07:16 Error: [Fata

  • trejder
    xdebug eclipse-pdt
    When I start debugging the process stays there at 57% and says “waiting for XDebug session”.This is a duplicate post on StackOverFlow, but I tried all the answers, nothing worked.It was working fine until before two days. I don’t know what went wrong.

  • Roberto
    php osx netbeans xdebug
    Mac OS X 10.8.5. I am trying to get Netbeans running using xdebug. To date I have tried XAMPP and MAMP without success. Apparently there is a native PHP on the Mac that I can’t figure out how to remove:sh-3.2# which php /usr/bin/php sh-3.2# php -v PHP 5.3.26 (cli) (built: Jul 7 2013 19:05:08) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend TechnologiesHowever, the PHP in my MAMP installation shows:sh-3.2# pwd /Applications/MAMP/bin/php/php5.5.3/bin sh-

  • preinheimer
    php configuration xdebug
    I have two servers. They are both running php 5.3.3. This code works on one server and returns a syntax error on the other. Is there a php ini setting that affects this behaviour? I can’t find anything related in the PHP documentation, but I may be looking in the wrong place.Server 1> php -v PHP 5.3.3 (cli) (built: Sep 23 2010 14:15:16) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Re

  • ebt
    php xdebug
    I’m running eclipse PDT on a xubuntu 10.9 VM, using xdebug to remote debug PHP 5.3. I have been having a number of issues over the last 6 months, things like:Debugger stops responding to breakpoints after being dormant for 20+ minutes. Debugger will exit suddenly with the fatal error “unexpected termination”. Requires eclipse to be restarted to debug again. Non fatal errors will pop up, I possibly think this is due to modifying code during execution.Is this an issue that can be fixed by upgradin

  • mimarcel
    php arrays xdebug
    Having an array $a and a key $key, it’s usually as simple as $a[$key] to get the value for that key in the array. However, if the array is returned by a function like this:function getArray(){return array(‘a’ => someObjectValue1, ‘b’ => someObjectValue2); } echo getArray()[‘a’];, then you can’t simply do getArray()[$key] as in some versions of PHP this would give you Parse error: syntax error, unexpected ‘[‘, expecting ‘,’ or ‘;’Then ofcourse something like this would work:$a = getArray();

  • Achris
    php netbeans stack-trace xdebug remote-debugging
    I am a C++/C# programmer who has some experience building websites with PHP. I recently installed NetBeans and xdebug because I couldn’t stand working without a debugger anymore. Stepping through the code works like a charm, but can’t seem to get xdebug to pause on exceptions and show me the call stack.Here’s an example:<?php// File is not found. xdebug should stop and show the call stack.require ‘nonexistant.php’; ?>I am running on a Mac (Snow Leopard) using a local MAMP PRO 2.0.1 server.

  • Rolf
    php linux security xdebug
    I have a VPS account on which I set up a Linux server to host some customer websites, and to upload “previews” of websites before publishing them to the production server.I develop the websites on my own machine (Windows) and do most of the testing there. Because of the difference in platform, sometimes problems appear on the Linux host, and I could use a debugging interface on that…My question is how safe is it to have xdebug on a remote public server which would also be used for hosting prod

  • ck_
    php arrays xdebug suhosin
    I have a weird memory problem in PHP. I think something is only allowing an array to be a maximum of 0.25M. It appears the script is only using up to around 6M before it crashes.Here’s the output from xdebug:Here’s the function it is calling. The result of the sql query is about 800 rows of text.public function getOptions(){$sql = “select Opt,Code,Descriptionfrom PCAOptions”;$result = sqlsrv_query($this->conn,$sql);$arrayResult = array();echo ini_get(‘memory_limit’); //this confirms that my m

  • Ray Hidayat
    php debugging netbeans xdebug
    I’m having trouble with debugging a PHP project through NetBeans using XDebug, and was hoping someone out there might have had this problem before.Debugging works fine for the requested php file – so if I go to index.php on the remote server, I can put a breakpoint anywhere in index.php in NetBeans and the code stops there and I can step through.The trouble is, all the other files appear on the call stack like this: “file:///home/user/site_html/library/class.requestprocessor.php” and because tha

Web site is in building