Site Move Error -> Issue With File Library?

Permalink
Hi All

Let me start by saying C5 is the best hands down cms out there full stop. I also completed the survey put out on twitter...I hope that everyone got out there and got behind it...

So my issue...

I have moved my site from dreamhost to an Australian server. The configuration is nearly identical in terms of PHP version etc.

I have moved many C5 sites before so I am well aware of the cache issues and the pretty url stuff.

Ok so my issue is that only part of my page renders when I look further into it I have tracked down my issue to the following code

$width = empty($width) ? 9999 : $width;
$height = empty($height) ? 9999 : $height;
$file = File::getByID($fID);
$ih = Loader::helper('image_crop', 'designer_content');
$image = $ih->getThumbnail($file, $width, $height, $crop);

This code is in the designer content block creator. Ok no big deal use some thing else. I use another block that also does image resizing and bang...same issue.

So I switched on PHP errors and do some print_r on some variables and get this

File Object ( [error] => [fID] => 41 [fDateAdded] => 2011-09-14 21:23:03 [uID] => 1 [fslID] => 0 [ocID] => 1 [fOverrideSetPermissions] => 0 [fPassword] => [fvID] => 1 ) 1

Notice: Undefined property: FileAttributeValue::$attributeKey in /path on my server/updates/concrete5.4.2.1/concrete/models/attribute/value.php on line 109


So I go to this file and I see

public function getAttributeKey() {

return $this->attributeKey;

}
Which is fine except it's never declared in the class... so I am really puzzled here.

The cached file is definitely on the server.

I honestly still think its a server configuration issue but I need some help with this

i have chmoded to 777 and has still not worked. I have retried many times to reinstall with the same outcome any help would be greatly appreciated.

Thanks

 
30Square replied on at Permalink Reply
Light bulb just went off...I should have spotted this that the php error is thrown because it fails to load the file. Could this be path issue? Obviously the servers are different do I need to update the paths in the database? I have never had to do this in the past...

Thanks
30Square replied on at Permalink Best Answer Reply
Ok solved my own problem.

Dreamhost had the php max_post_size in the php.ini file set to 8mb but my new server had it set to 2mb...The files that the thumbnails were using were over 2mb (client uploaded these images) hence php was not opening the file as it was bigger then the setting in the php.ini file.

So I uploaded my own php.ini file overriding the servers and bingo it worked.

I hope this helps someone.