Friday, May 7, 2010

stop php deprecated warnings in browser

I just installed newest version of wamp server on a new windows 7 machine. When I installed the web app, I got a bunch of following printouts in the browser at the top of every webpage:
Deprecated: Assigning the return value of new by reference is deprecated in [...]\cake\libs\inflector.php on line xxx

After spending an hour looking, here is what worked:

1. in cake/lib/object.php: add following in next line after <&ques;php
error_reporting(E_ALL ^ E_DEPRECATED);

2. in cake/libs/configure.php replace
error_reporting(E_ALL ^ E_DEPRECATED);

3. in your php.ini, search for error_reporting and replace the entire line with
error_reporting = E_ALL & ~E_DEPRECATED

Monday, April 12, 2010

svn webdav - view previous revisions

So, if you want to see the previous revision for path

Use this URL:!svn/bc/2615/trunk/app/webroot/images/welcome/

Where 2615 is the revision number I want to see.

Thursday, January 28, 2010

160043 "Could not open the requested SVN filesystem"

After about a year since we set up subversion server, I needed to create a new project. So I ran
>svnadmin create myproject
We have svn hooked with apache - that is, https protocol.
When I tested the new url in a browser, I got the following error:
160043 "Could not open the requested SVN filesystem"

I found a lot of posts on the web that discussed this error message, but none suggested a solution other than upgrading svn and apache builds.
Since existing projects were working fine, I didn't see the need to upset my stable environment.

When I looked at apache logs, I saw the message:
Expected FS format between '1' and '3'; found format '4'

So that give me the hint - what search results for error 160043 were saying was correct, the version of apache's svn mod and svn server doesn't match. What they didn't tell me (or I missed the search result that did mention it) was that the easier fix is to create the project as follows:
>svnadmin create myproject --pre-1.5-compatible

This solved the problem for me.