Hi,

I have two machines. One I want for testing, one as a webserver. At present the webserver works fine.

I want to try some new stuff. The drupal install lives in /var/www/html along with the modules, themes etc. there are no subdirectories, just a very vanilla site. I tarred the html folder, did a mysqldump and moved the tarred html folder to the test machine, extracted it, then imported the mysql database. The site looks identical.

The problem is that on the test machine if I try and edit one of the view blocks for a gallery I get

An error occurred at /admin/build/views/ajax/display/gallery/block_1/items_per_page.

Why would it be fine on one machine but not the other? I thought it might be something to do with the .htaccess files being different but thats not the problem, I then thought maybe the php.ini but it's still doing it.

Where would you suggest from now? The http error logs don't say anything much.

Thanks in advance.

CommentFileSizeAuthor
#5 screenshot4.png55.66 KBdawehner

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

You should enable display of php errors. This error only get displayed, if there is a php error.

Andrew44’s picture

Thanks for the reply.

I set the PHP errors to on as per

http://perishablepress.com/press/2007/12/17/how-to-enable-php-error-logg...

and I am not getting anything in the error log?

merlinofchaos’s picture

Another thing to check is to use Firebug to view the actual response given. Also, you might try out Views 2.x-dev which has a bit more error reporting for this.

Andrew44’s picture

If I open up firebug, when I click anything in views I get the error mentioned above and firebug reports

Response Headersview source
Date Sat, 03 Apr 2010 17:57:20 GMT
Server Apache/2.2.14 (Fedora)
X-Powered-By PHP/5.3.2
Expires Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified Sat, 03 Apr 2010 17:57:20 GMT
Cache-Control store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-Length 0
Connection close
Content-Type text/html; charset=utf-8
Request Headersview source
Host 10.0.1.197
User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept application/json, text/javascript, */*
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
X-Requested-With XMLHttpRequest
Referer http://10.0.1.197/admin/build/views/edit/gallery?destination=node
Content-Length 0
Content-Type text/plain; charset=UTF-8
Cookie SESS99dea38f6b0f7aba02d054486f5ce74a=tmfibtprite0cgv06r8efc97s3; SESSe87d569bdaea001e71644d92573ee8cb=5scp8pdler24pffm0l896v9q35; has_js=1

dawehner’s picture

StatusFileSize
new55.66 KB

See this screenshot.

There you see the important informations, i manually created an issue.

Andrew44’s picture

Thanks everyone for your help. I've sorted the problem and found that the cause is PHP.

I've found that with PHP 5.2 everything is great, with PHP 5.3 I get the problems mentioned above. I've tried it several times and everytime it fails with PHP 5.3.

Thanks,

Andrew

Andrew44’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
iantresman’s picture

I've just started receiving this error, after updating my htaccess file to force my domain to be prefixed by www. But the error message shows the domain without the www prefix:

An error occurred at http://mydomain.com/admin/build/views/ajax/display/gallery/default/items...

I've tried clearing my Drupal cache, tried running update.php (failed at the end), clearing cookies for the site, and my Firefox cache.

There is no problem with another Drupal site (a multisite sharing the same codebase).

It might suggest another cache?