Posted by web2 on November 8, 2007 at 7:20am
Jump to:
| Project: | Photoframe |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | web2 |
| Status: | closed (fixed) |
Issue Summary
Hi,
nice module. I test it, but there is no photo frame available for selecting on administration page. I think there is some error in codes for path
$path = drupal_get_path('module', 'photoframe') . "/";
$files = file_scan_directory($path,'(.?)',$nomask = array('.', '..', 'CVS'),'',FALSE);
foreach ($files as $filename => $file) {
// If the file doesn't have a '.' in it (this is my hacky way of figuring
// out if it's a directory)
if (!strpos($filename,'.') && $file->basename != 'disabled') {
// Add the stylesheet
drupal_add_css(drupal_get_path('module','photoframe') . '/' . $file->basename . '/' . 'style.css');I also attached screenshots.
| Attachment | Size |
|---|---|
| capture_08112007_124609.gif | 124.71 KB |
Comments
#1
Hello nashikit,
I installed both the tarball and CVS versions of Photoframe on a fresh Drupal install, and I'm not able to duplicate the problem you're having. It would be good to hear of other folks are having this same problem.
That method of getting the path appears to be valid. I'm still fairly new to the file API, so I might be wrong. Have you tried experimenting with the code at all? Can you tell me what the $path variable is? You can get it by adding a temporary echo after that first line so that it reads:
$path = drupal_get_path('module', 'photoframe') . "/";
echo $path;
Thanks!
#2
#3
Yeah, I'm having the same problem. I am very new to this Drupal stuff and know nothing about coding. What do you need from me in order to help me out?
#4
Ok, finally figured it out. First off delete the module competely from your website via the FTP. Then open up the main folder of the photoframe module and you will see a folder called "photoframe"...now upload this folder directly to your module folder and set it up like you normally would and it will be fixed!
#5
This issue appears when having a multi-site directory containing a dot.
Please try the patch attached to: http://drupal.org/node/195139
This should fix your problem.
#6
I have applied the patch which should fix the multi-site problem.
#7
Automatically closed -- issue fixed for two weeks with no activity.