Posted by sanluca on March 8, 2009 at 4:01pm
| Project: | album photos |
| Version: | 6.x-2.6-beta2 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I have updated the module and installed dfgallery, I see the album image with any other without. But I can not see dfgallery for viewing pictures with flash
first everything worked well with the old version
What can I do?
thanks
my site where it can monitor and www.fantabook.org
Comments
#1
Me neither, I just performed a clean installation of photo album and I get the following message when enforcing to use slideshow as the default album page view: Fatal error: Call to undefined function _photos_node_view_flash() in /www/tkk/modules/photos/photos.module on line 467.
What could be wrong? Cheers.
#2
Please apply this patch, or download the revised version:
<?php
Index: photos.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/photos/photos.module,v
retrieving revision 1.2.2.34
diff -u -r1.2.2.34 photos.module
--- photos.module 8 Mar 2009 05:40:01 -0000 1.2.2.34
+++ photos.module 9 Mar 2009 00:54:02 -0000
@@ -464,9 +464,17 @@
if($i >= $limit) $album .= theme('more_link', url('photos/album/'.$node->nid), t('Album view'));
return $album;
case 3:
- return _photos_node_view_flash($node, $type);
+ if($type == 'teaser' && $node->album['teaser_slide']){
+ list($width, $height) = explode('x', $node->album['teaser_slide']);
+ }else if($type == 'page' && $node->album['page_slide']){
+ list($width, $height) = explode('x', $node->album['page_slide']);
+ }else{
+ list($width, $height) = explode('x', variable_get('photos_display_slide', '640x480'));
+ }
+ return dfgallery_html(array('url' => url("photos/data/album/$node->nid", array('absolute' => true, 'query' => array('type' => 'json.json'))), 'width' => $width, 'height' => $height));;
}
}
+
//hook_user
function photos_user($op, &$edit, &$ac) {
global $user;
@@ -1027,7 +1035,7 @@
db_query('INSERT INTO {x_node} (nid, fid) VALUES (%d, %d)', $file->nid, $file->fid);
}
if(variable_get('photos_user_count_cron', 1)){
- photos_set_count('user_image', $uid);
+ photos_set_count('user_image', ($file->uid ? $file->uid : $GLOBALS['user']->uid));
photos_set_count('node_album', $file->pid);
$file->nid ? photos_set_count('node_node', $file->nid) : NULL;
}
@@ -1145,9 +1153,14 @@
//hook_cron
//2009/2/15 23:17
function photos_cron(){
+ _photos_res_count(1);
+}
+
+function _photos_res_count($cron = 0){
photos_set_count('site_album');
photos_set_count('site_image');
- if(!variable_get('photos_user_count_cron', 1) && ((time() - variable_get('cron_last', 0)) > 7200)){
+ $time = $cron ? 7200 : 0;
+ if((time() - variable_get('cron_last', 0)) > $time){
$result = db_query('SELECT uid FROM {users} WHERE uid != 0');
while($t = db_fetch_object($result)){
photos_set_count('user_image', $t->uid);
Success, CVS operation completed
?>
#3
It works!
Thank you.
#4
I applied the patch but have not solved the problem displaying flash does not work, you've got to check the site?
thanks
#5
#4
I do not have permissions. Maybe you can open view photos.
#6
Same problem, in the log I have following Page "not found entries":
- photos/album/images/loadingAnimation.gif
- images/loadingAnimation.gif
- sites/files/images/VTAD_5.Frühjahrskonferenz_05.04.thumbnail.gif (this was an old image, its not more there)
After deleting the Album and creating it again and running cron, it worked, but the "not found errors" still appear in the log.
It seems to me that after the update, its trying to read some old-deleted files (DB garbage?)
There is also a new not found:
sites/all/modules/dfgallery/dfgallery/resources/locale/dfgallery_en.eden
You can see at www.vtadneu.de Test album
#7
@ #7
#1, loadingAnimation.gif:
<?php
file: .../modules/photos/thickbox/thickbox-compressed.js
-var tb_pathToImage = "images/loadingAnimation.gif";
+var tb_pathToImage = '/sites/all/modules/photos/thickbox/loadingAnimation.gif';
?>
#2, dfgallery_en.eden:
Error: lack of language packs: The error will disappear in seconds. It is caused by a lack of language pack, cvs does not support the language pack(.eden) format.
Based on the wrong path, please create an empty file. eg: ..../modules/dfgallery/dfgallery/resources/locale/dfgallery_en.eden
#8
It works now!! Thanks
#9
I dont see the thumbnails on my nodes any more and when i click on slideshow i get this error
Fatal error: Call to undefined function dfgallery_html() in /home/brugalit/public_html/modules/photos/inc/photos.album.inc on line 143
#10
#9
Please download dfgallery module
#11
sorry about that. Im a drupal idiot. attached is an image of whats happening. I had created a ton of forum nodes with albums attached. i had the thumbnails and pager visible when people clicked on the node teaser image. now i dont have any thumbnails but i can view the attached album when i click on slideshow.
#12
hi,
I solved reinstalling dfgallery, I do not know what could happen.
thanks
#13
Hi,
the update photo.module fixes the flash slide view, but when I click on album or the thumb view it gives me a blank page.
looks like the path is not correct?
"http://localhost/photos/album/1" <= blank page when i click the node 1
"http://localhost/photos/album/1/slide" <= this works
謝謝
#14
hi,
i have a problem when saving an album.
user warning: Field 'fid' doesn't have a default value query: INSERT INTO x_album (pid, data) VALUES (8, 'a:13:{s:9:\"viewpager\";s:2:\"10\";s:10:\"imageorder\";s:14:\"timestamp|desc\";s:14:\"list_imagesize\";s:5:\"thumb\";s:14:\"view_imagesize\";s:7:\"640x480\";s:12:\"page_display\";s:1:\"1\";s:12:\"page_viewnum\";s:2:\"10\";s:14:\"page_imagesize\";s:5:\"thumb\";s:10:\"page_slide\";s:7:\"640x480\";s:3:\"pid\";N;s:14:\"teaser_display\";s:1:\"1\";s:14:\"teaser_viewnum\";s:1:\"5\";s:16:\"teaser_imagesize\";s:5:\"thumb\";s:12:\"teaser_slide\";s:7:\"640x480\";}') in C:\www\drupal-6.10\modules\photos\photos.module on line 428.