I'm not experienced with Perl so I may be doing something wrong here, but I'm receiving the following error when enabling the module in Drupal:

Fatal error: Only variables can be passed by reference in /var/www/stephthegeek.tv/public_html/modules/fetchgals/fetchgals.module on line 176

Any ideas?

Comments

pobster’s picture

Sorry for the delay in replying, I forgot to set this project to email me when someone posts an issue...

Well line 176 is:

    if (file_check_directory(fetchgals_check(variable_get('fetchgals_pics_dir', './porn_pics')))) {
      $items[] = array('path' => 'fetchgals/pictures', 'title' => t('fetchgals pics'),
        'callback' => 'fetchgals_viewpics',
        'access' => user_access('access fetchgals'),
        'type' => MENU_SUGGESTED_ITEM
      );
    }

I don't see as this should be causing you any problems? Erm... I guess it's not even a necessary line either? Change it to just this:

    $items[] = array('path' => 'fetchgals/pictures', 'title' => t('fetchgals pics'),
      'callback' => 'fetchgals_viewpics',
      'access' => user_access('access fetchgals'),
      'type' => MENU_SUGGESTED_ITEM
    );

And let me know if that solves your problem.

Pobster

pobster’s picture

Aha! :o) I'm guessing it's likely because you're using php 4? Let me know if you are...!

Pobster

pobster’s picture

Status: Active » Closed (fixed)