I am not an expert in PHP, still learning it. I'd like some hints on how to troubleshoot problems.
Recently I installed PHP 5.2.9 on Vista+IIS7 (phpIsapi). I ran a script that did an opendir()/readdir(). This script ran just fine on 5.2.0. On v5.2.9, it failed but I got no indication of the source of the problem.
I banged around in the dark to troubleshoot it, finally trying different directories and narrowing it down to a directory perms issue. More banging around to figure out which user needed perms. Though the page runs as Network Service, the user that needed perms on the dir was IUSR. And it needed RX perms on the entire traversal tree. Who knew?
I also worked with a bunch of COM components. Some of them worked, some did not. They often failed with "No error". Again it was bumping around in the dark until I solved the problem.
I tried error_reporting(E_ALL | E_STRICT) but that gave me nothing more useful.
I know this can't be the way that people do troubleshooting as they develop on PHP.
Any hints you can provide on efficiently working through minor issues as they come up?
http://www.xdebug.org/
Well, my answer is: no, there's no good way.
Related
I've messed up a little bit with my php cms insallation and now I've problems loading the mediawiki Main_Page and I don't exactly know why. The error thrown by the server is a simple 404, so it doesn't explain that much to me. The only thing that could help me find out the solution is that I changed the virtual host configuration a couple of times in the server (Apache 2.4).
I'm guessing the problem is there but I don't have any further clue about how to solve it.
Has anyone experienced something like this?
I've to add that this is not a short URL problem, as i'm not trying to redirect the articles pages to a specific url, so this shouldn't be useful in my case.
From the information you provided, i guess you got some error in your pathing.
Have you tried running it locally via e.g. Mamp ?
Play around with you local_settings especially $wgScriptPath and $wgStylePath.
The error can usually be found in there, and fixed in there. I have been working with MediaWiki the last couple of weeks. If you provide some more info, i might be able to help you some more.
I recently moved my entire site to a new host. I had only minor issues getting my SMF board to work on the new host but I'm afraid I've reached my knowledge limit on getting my old, dusty Ikonboard (which uses a Berekely DB) to work. It's not a board we currently use but more of an archive.
In theory all I should've had to do was edit the server settings in a file called Boardinfo.cgi, which I did. I was still getting errors when I tried to access the board. So I contacted my new host and asked them if there was anything else they could think of that I needed to do to get it running. Their response was, in part:
It appears there are some issue with the version/software you are
trying to use. The environment Ikonboard is trying use Apache/1.3.27
(Unix) while the server currently uses Apache/2.2.25 (Unix).
Also when getting visiting
[http://OURSITE.com/cgi-bin/ikonboard.cgi] we are getting errors
for the PHP handler. We are not sure if Ikonboard is trying to use
"nobody" or another user to run. Which ever it is not correctly set up
for suPHP which is the current PHP handler.
As in [http://OURSITE.com/Install_Guide.html] we have chmod the
files to 755 and that is allowing the file to oad, but not
successfully run the code inside.
We have added in a php.ini to the public_html folder that will allow
you to adjust any php setting that may require it to run. However
looking into the code does fall out of the realms of our support. You
may try contacting Ikonboard to see if they can shed some light on
this issue.
I'm primarily a web/graphic designer and not a programmer so most of this doesn't make much sense to me (though I've had some success doing php edits on sites in the past). I did pose the question on the Ikonboard message boards but since Ikonboard is pretty much dead, their support boards are populated by a bunch of tumbleweeds blowing by. I'm willing to throw money at this issue, if it can be solved, but I thought I'd ask here before I do that.
Any ideas would be very much appreciated!
I've brought this issue to the OS-Ticket community forum but haven't yet had a reply. I'm trying to install the latest version (1.7.0) and am getting the error:
Unknown or invalid schema signature (d959a00e55c75e0c903b9e37324fd25d .. 9e85d0c8f8532e3b0be38e99aba07aa1)
I've looked at the source code but am still unsure why this error is being generated. Does anyone know how I may be able to go about resolving this issue or what may be causing it? I've installed the system previously on my local machine without issue, the server i'm installing to is however Windows and so i'm wondering if there are any known things to be aware of when dealing with this system / MySQL on windows.
If I can't find a solution are there any recommended ticket support systems I could perhaps use instead?
Many thanks in advance.
Just change the second part of signatures in the file-
include\upgrader\streams\core.sig
Reference
There is a post in their forums for a workaround.
Post #5: http://osticket.com/forums/showthread.php?t=13703
I contacted the Dev Team about the workaround around a month ago and they advised against it, telling me they were working on fixing it; and to give them 2-3 weeks. Thus far, I have contacted them again with no response and have found no fix.
I have not heard of anyone using the fix reporting issues. Still, comes with a "Use at your own risk" disclaimer I would say.
My problem is, that my Eclipse PDT randomly looses PHP content assist. It happened about a dozen times now and I can't figure out, what causes this. It used to happen about once in two weeks. I install a plugin or just close Eclipse and sometimes, when I start it up next time, it looses basic PHP assit, like "in_array()". But all project specific assistance works fine though.
I went through a lot of tips, checking my window > prefs > php content assist, checking if PHP support is added to the project, checking my project's .buildpath, making a clean build, starting Eclipse with -clean option. These things just don't help.
What I used to do (and will do now) is to restore an Eclipse backup, meaning I have to restore my pdt_workspace and my Eclipse install folder both or PHP assist will not work. I've tried restoring parts of these folders or just on of these, but it seems, I have to restore both of them to get content assist back. I went through this a dozen times now, so fortunately I make weekly backups. ;-)
I don't know, what makes these problems happen. Does anyone have some similar problem or any idea about this?
/sorry for bad english/
UPDATE:
I don't know what's going on really, but I got PHP assist working again, two times. First time it started working I've been a lot of install/uninstall and it just came back working. But I've lost it again for no reason. This time, I've uninstalled Yiiclipse and Zen Coding plugin and PHP assist started working. But I reinstalled them and PHP assist is still working! WTF?!
I can't see any logic in this....
I managed to solve my problem. After a lot of testing I ended up removing Zen Coding and Yiiclipse both and doing a clean + build on all projects. This seem to solve my problems and give back PHP code assist.
The downside is, I don't have Yiiclipse and Zen Coding now....
Well, after much grief with this I opened up Eclipse, and right click the project, go to Add PHP support... and voilá. That did the trick.
I experienced this issue due to Upgrade from Helios -> Luna & Content Assist, Key references, variables etc. suddenly stopped working. This was due to incompatible db structure in h2 database from older one.
To resolve this, just remove the data or files from :
<your workspace directory>/.metadata/.plugins/org.eclipse.dltk.core.index.sql.h2
I really liked flexibility of emacs but it is really annoying to make it work. I want to use it for web development html, css, javascript, php. I first tried emacs-starter-kit . It didn't included nXhtml. Also C-g key binding does not work (they call it starter kit but basic key command does not work). I think it is mapped for git control. That's a frustration for a beginner. Then I replaced emacs-starter-kit with nXhtml. At least C-g is working. But code completion sucks, M-tab does not work. I tried code completion from nXhtml menu with no success. Also NXhtml mode did'nt colorized my file if css is mixed with html. Isn't it recommended for mixed html, css,php files. So why it doesnt work?. Why Emacs folks do not aware of convention over configuration? Dam! ship it something works! Please help me before I am getting crazy. I use Ubuntu 10.04 and emacs-snaphot-gtk 23.1.50-1. Please guide me step by step with your working dotfile url. Even I accept I am a dummy, it is really annoying and frustrating to use emacs.
Have a look here if you haven't already. You are running Emacs under X. In that case, you should try if Esc-Tab works for code completion. M-Tab might be lost to the X for switching between processes.
Programs like Emacs and Vim demand that you invest time and effort before they start paying off. They pay off really good in terms if not getting in the way of real work. I suggest you to find time to get acquainted with such programs before venting out.