php,apache2,aptana,xdebugRelated issues-Collection of common programming errors


  • ThihaKyaw
    php android mysql
    What is this error, and why does it happen? Please explain and solve. This is sample from “androidhive”. I need help for my thesis because of my thesis android app is to store data at web server.12-10 10:08:09.556: W/System.err(401): org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused 12-10 10:08:09.556: W/System.err(401): org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused 12-10 10:08:09.686: W/System.err(401): at org.apache.h

  • Darius
    php xml
    I call commission junction API and receive this as a response.$xml_response = simplexml_load_file($xml_response); exit($xml_response);If I do $xml = new SimpleXMLElement($xml_response);I get an application error. (Not sure how to find what error this is, where could I set error codes to show for this part?)Warning: simplexml_load_file(): I/O warning : failed to load external entity ” 106032782478435B & H Photo VideoComputers & Solutions > Laptops > MacBookshttp://www.jdoqocy.com/cl

  • Xalu
    java php android mysql json
    I am currently working on an app and I am trying to implement a user system with login/registatration. I’ve been going over several tutorials to get an idea what to do. Now I am beginng to wonder if something is wrong with my eclipse enviroment because after trying 2 or 3 tutorials (and downloading the source code to test), I keep getting the same errors.Rather than posting all the code (there is a lot)…Here is a link to the projects tutorial http://www.learn2crack.com/2013/08/develop-android-

  • jbihan
    java php android mysql json
    Immersed in the development of my program, I encounter an error that seems to me not really speaking.So here’s my logcat in the order and the java code:When I click on the item in my listview it should return me the contact information for the update.public class MajContactActivity extends Activity {EditText txtNom; EditText txtPrenom; EditText txtNummobile; EditText txtNumfixe; EditText txtEmail; EditText txtAdresse; EditText txtProfession;Button btnSav; Button btnSup;String idCONTACT;// Progr

  • SPeed_FANat1c
    php random poker
    I have made a research on poker equities. What I did is use pokerstove program with some selected. And with that program calculated the equities using enumerate all method. So pokerstove results:I also made a table where I store the random results:CREATE TABLE poker_results ( id int NOT NULL AUTO_INCREMENT, matches_id int NOT NULL, — just for filtering in case I will want another starting hands. result varchar(255) NOT NULL, winner_hands varchar(255) NOT NULL, PRIMARY KEY (id) ) The result col

  • Martijn Riemers
    php git maven vert.x
    I’m trying to install the PHP language in my vert.x mods directory. I have tried both branches and both process a different answer.All these results and errors were either produced when trying to build from the git repo or using running vertx run app.php in the command line using this simple PHP script:<?phpuse Vertx\Pump;$server = Vertx::createNetServer();$server->connectHandler(function($socket) {$pump = new Pump($socket, $socket);$pump->start(); })->listen(1234, ‘localhost’);When

  • Jogn Smit
    php mysql facebook
    This will be very hard to explain, but i will do my best. I have a facebook application (it’s a quiz – trivia), where users has to “sign in” with their details, i’m picking up their emails, but also requiring them to input the email, cellphone and address, also i require them to like the page before they can proceed, otherwise they are redirected back to the same page. Now, the tricky part is. I have went through the settings of both accounts, when i say both accounts, i have accounts with 15 d

  • Inator
    php javascript apache nosql couchdb
    I’ve recently successfully installed CouchDB version 1.2.1 and as a test I can access it using the following Apache rewrite in CentOS 6:RewriteRule couchdb/(.*)$ http://127.0.0.1:5984/$1 [QSA,P]I have a PHP authentication class that I use across a home grown API to support my mobile apps. My API accepts and authenticates each request using an HMAC signature that is included in the URL like so:https://api.domain.com/endpoint/?timestamp=[timestamp]&signature=[signature]&id=[id]…etcEach

  • Dr.Kameleon
    php regex wiki
    Well, this is an example infobox content :|conventional_long_name = Italian Republic |native_name = {{lang|it|”Repubblica italiana<!–italiana is without uppercase; see Italian wiki–>”}} |common_name = Italy |nickname(s) = Il Belpaese |image_flag = Flag of Italy.svg |image_coat = Italy-Emblem.svg |symbol_type = Emblem |image_map = EU-Italy.svg |map_caption = {{map caption |location_color=dark green |region=Europe |region_color=dark grey |subregion=the [[European Union]] |subregion_color

  • SoLoGHoST
    php internationalization gettext
    I am trying to set up a way to allow members to translate strings into other languages. You can see an example here: TRANSLATIONS TESTSomeone recommended that I use php’s native gettext() function for this, instead of what I am already using to load the language files, which is this:function loadLanguageFile($language, $file) {$temp = array();$data = file_get_contents(‘./’.$language.’/’.$file.’.’.$language.’.php’);$codes = array (‘/(\’\s*\.\s*\$)(.+?)(\s*\.\s*\’)/’,’/(=\s*\$)(.+?)(\s*\.\s*\’)/

  • Soroush Falahati
    php linux apache2 apc xcache
    First I had xCache installed on server, I had xCache on lot of my servers but in this one after couple of days you go nothing except a blank page with this error in apache error log:child pid XXXXX exit signal Segmentation faultAs far as I know this mean some sort of memory corruption.So I removed xCache from php.ini and installed APC. But things are worse now. After one hour or less/more server become unresponsive. I can clearly see in my website’s server-status that there are lot of connection

  • user2672744
    java php apache2 tomcat7 php-java-bridge
    Linux server with Apache2, Tomcat7, PHP 5.5.10 are all up and runningGot this project where we have a JavaBridge installed for report generation, I have this working like a charm on my windows pc in an xampp environment, but on the server I am getting a ClassNotFoundException. I can access the JavaBridge directly from the site by:http://mysite:8080/JavaBridge/java/Java.incHowever from the PHP I keep getting this error of ClassNotFoundException//getting Java.inc //acquired Java.incdisplay //jav

  • John Smith
    mono apache2 mod-mono fedora16
    Running mod_mono server 4.0 on Fedora 17, every minute, on the minute, mono reboots itself, citing file changes as the reason for rebooting, despite the fact no files have been made.On occasion but not always, it will throw an exception during the cycling process. Sample log as follows:Change: /var/www/html/mysite/script/dashboard/view Change: /var/www/html/mysite/script/dashboard/controller Change: /var/www/html/mysite/script/dashboard/model Change: /var/www/html/mysite/script/dashboard/chart C

  • user1560992
    deployment jboss apache2 mod-proxy
    I am trying to make Jboss-7 deployment work with mod_proxy on port 80, but I faced problem1- I modified the standaloan.xml<subsystem xmlns=”urn:jboss:domain:web:1.1″ default-virtual-server=”default-host” native=”false”><connector name=”http” protocol=”HTTP/1.1″ scheme=”http” socket-binding=”http”/><virtual-server name=”default-host” enable-welcome-root=”true” default-web-module=”filemanager”><alias name=”localhost”/><alias name=”example.com”/></virtual-server>

  • blackfedora
    python django-templates apache2 django-views locale
    I’ve got a simple Ubuntu/django/apache server set up and I’m having trouble formatting some of the numbers that I want to display in my Django templates. When I run the code locally (i.e. on my work machine) using the Django test server everything formats with no problem.Likewise, when I open up IDLE on the server I can do this:`>>> import locale>>> locale.setlocale(locale.LC_ALL,”)’en_US.UTF-8′>>> ‘{0:n}’.format(42424242)’42,424,242’`However whenever I try to run the apache server and test the

  • Mitch
    installation apache2 tomcat
    I am trying to run 2 tomcat servers in cluster, I have made necessary changes in server.xml of each of those, but while starting server i am getting following error, what can be the issue??Jun 18, 2013 12:57:55 PM org.apache.catalina.core.AprLifecycleListener initINFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk-i386/j

  • user2042985
    php zend-framework curl apache2 passenger
    Hello I have a strange problem,I’m using Zend Http Client with Curl Adapter to call an external API.I’m able to do nearly everything – POST and PUT are completely OKDELETE is also OK but when sending data with DELETE I always get an error in the apache error log on the server with API server:pid=25665 thr=140007665268704 file=ext/apache2/Hooks.cpp:884 time=2014-01-13 22:30:06.320 ]: Unexpected error in mod_passenger: An error occurred while receiving HTTP upload data: The timeout specified

  • robhogg
    shell logging apache2 lamp
    I’m building a LAMP server for multiple users to practice web development using mod_userdir, and have written scripts to break out the access and error logs to log directories within the user’s home directories.The access_log.sh script is working fine (log lines get written both to the main server log file, and the user’s log file), but error_log.sh is only updating the main log file. This is error_log.sh:#!/bin/bashIFS=’ ‘userlogfile=error.log syslogfile=/var/log/apache2/cs-web_error.loghomedir

  • Pio
    apache2 linuxmint php-5.5
    I recently updated my linux mint via the automatic updater. I had the problem, that it did not execute php scripts. After re-installing libapache-mod-php5 some php started to work. Yes, just some, as phpinfo() is executing properly, but another php file, which works correctly on other machines, and was working on mine too, is now producing the following error in resopnse to an $.ajax call: status: parsererror errSyntaxError: Unexpected token <. what happens is it returns the php file without

  • Patrick McKinley
    php regex apache2
    i’m trying to set locale environment variables in my VHost on an apache server, so that the requested path will define the locale used. The requirement is to use a more “consumer friendly” locale code, rather than the ISO format – but we need to map those to the supported ISO format in the framework.For example: http://site.com/uk/path/to/page.html will set the environment variable of REQ_LOCALE=en_GBAnd we want to default this to US english if an unexpected locale is found.What i’m trying to u

  • Dangthrimble
    ruby aptana aptana3 ruby-1.9.3 ruby-debug
    I am running with the following configuration:Windows XP Media Center Edition SP3 Aptana Studio 3, build: 3.0.9.201202141038 ruby 1.9.3p125 (2012-02-16) [i386-mingw32] (installed from rubyinstaller-1.9.3-p125.exe) DevKit (installed from DevKit-tdm-32-4.5.2-20111229-1559-sfx-4-20-6.exe) RubyGems 1.8.21I am unable to install ruby-debug (even after checking COMSPEC and AutoRun as specified in https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_fails_comspec_autorun to addre

  • Well wisher
    mysql ruby-on-rails aptana
    i have tried to connect my aptana rails application to mysql. but an error message shows that llibmysql is missing. help me please here is my steps, please do let me know if i missed anything.1- open aptana and created new rail project 2- aptana automatically created all folders, $ bundle install3- then i have configured the database.yml as adapter: mysql2encoding: utf8reconnect: falsedatabase: blog_developmentpool: 5username: rootpassword: roothost: localhost4- added mysql2 in gem file 5- down

  • sandesh sk
    ruby-on-rails ruby json aptana
    I am trying to install latest version of json using gem bundle install and it results in an error. I am trying to install within aptana studio 3 workspace. I get the following error – can anyone throw some light on this issue -Installing json (1.7.5) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.An error occurred while installing json (1.7.5), and Bundler cannot continue. Make sure that gem install json -v ‘1.7.5’ succeeds before bundlin

  • kieppie
    ruby eclipse aptana content-assist code-assist
    I’ve a clean install of Aptana as an Eclipse plug-in (fresh installation).My suspicion that this could be a duplicate key-binding (quite possibly a bug), but information online is sparse.Eclipse: 3.5.2-8ubuntu3 Aptana: 3.0.5.201110061700-7 Ubuntu: 11.04, kernel 2.6.38-11-genericSession data:eclipse.buildId=M20100211-1343 java.version=1.6.0_22 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_NZ Command-line arguments: -os linux -ws gtk -arch x86_64For

  • rano
    php eclipse singleton aptana eclipse-pdt
    I’m using PDT and Aptana on Eclipse Indigo with PHP 5.3 and I want to create a singleton in a class. By singleton, I mean I want to just have one instance of that object, and for other objects or classes to get that single instance via a function that returns that object (so this would mean I’m trying to create an object within the class that defines that object, ie: creating objA within the class objA)I understand you can’t just go a head and do this:public $object = new Object();with in a clas

  • screenm0nkey
    php aptana
    I’m a real newbie when it comes to PHP debugging so forgive my stupidity. I have a simple html form that submits to a PHP script and I want to debug that script and see what’s being sent from the form.My Aptana has two two PHP interpreters installed; Zend Debugger on port 10001 and XDebug on 9000I have the Firefox Aptana Addon installedI have my HTML page on the following url, running locally;http://3i/latest.htmlIn the IDE I open the PHP script and add some breakpoints, I then open the latest.h

  • hakre
    php iis iis-7 aptana
    I am trying to get a trial copy of the aMember membership management system running on my local dev machine, which is Windows 7 64-bit with IIS 7.5. I have MySQL 5.5.10 and PHP 5.3.6, the latter which I installed using the Windows installer package. It seems fine. The aMember package has a tester.php script which I ran, and it gave an ‘OK’ result, despite its output being full of error messages related to Function eregi() is deprecated. I then ran the setup.php script, which seemed to run pr

  • Hugheth
    javascript aptana
    I’ve got a problem with Aptana studio when trying to use objects that assign to ‘with’:var x = {}; x.with = 12;This produces Syntax Error: unexpected token ‘with’The code is in an external library which I’m using so I’d rather not change the code, which doesn’t cause errors in IE or Chrome.I’ve tried using Preferences > Javascript Syntax Validator and adding a rule, but I’m having trouble writing a correct expression. Does anyone know of a way to turn this error off without ignoring other ‘with’

  • Joshua Robison
    ide aptana
    Running Aptana Studio 3 on Mac osx 10.5.8 g4 powerbook I get the following error when I try to open the browser preview window to show my html.”Could not create the view: An unexpected exception was thrown.”When I click the “show details” button, I get a whole bunch of “java.lang.RuntimeException: java.lang.ClassNotFoundException: com.aptana.swt.webkitbrowser.PlatformOSHelperat com.aptana.swt.webkitbrowser.OSHelper.(OSHelper.java:30)at com.aptana.swt.webkitbrowser.CEFHelper.(CEFHelper.java:27) .

  • TomM
    linux aptana ubuntu-12.04
    I downloaded the latest aptana studio on ubuntu 12.04 and it does not start. When trying to start it from the command line it says:./AptanaStudio3: kan een binair bestand niet uitvoeren. (dutch) Wich means cant run binairy file.When running AptanaStudio3.sh it says:./AptanaStudio3: Syntax error: “(” unexpectedIs this a bug or am i doing something wrong?

  • 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

  • zur4ik
    php apache logging xampp xdebug
    I’m running some php file every 2 minutes via Windows Task Scheduler, but time-to-time I get notification about low space on my drive D:.After check I found that in XAMPP tmp folder located on D:\XAMPP\tmp are lot of files with names similar to: cachegrind.out.1381478803-D__xampp_htdocs_Real_Estate_App_index_php and size of each file is more than 144 MB.These files have content: ==== NEW PROFILING FILE ============================================== version: 1 creator: xdebug 2.2.3 cmd: D:\xampp\

Web site is in building