Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-8334

common.php code for IN_CRON

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 3.0.4
    • Other
    • None
    • PHP Environment: 5.2.6
      Database: MySQL 5.1.25

      By background, I run a set of National Language (NL) forums over a shared phpBB installation. Basically each forum is a skeleton directory with symlinks back to a shared coded base (exept for cache, files etc.). See http://wiki.services.openoffice.org/wiki/User:TerryE/phpBB3.0.4_Migration_%E2%80%94_Detailed_Implementation_Notes#Standard_NL_configuration if you want more info.

      Everything worked fine apart from the cron functions. After quite a lot of debugging I eventual found the problem in that common.php includes at lines 117-120 the following:
      if (defined('IN_CRON'))

      { $phpbb_root_path = dirname(__FILE__) . DIRECTORY_SEPARATOR ; }

      I am lost as to the reasoning behind this since cron works fine without it and in my case just works. Given that you are planning to rework this for 3.2, and the logic for this is probably redundant now, I just wanted to suggest dropping this redundant exception.

            Oleg Oleg [X] (Inactive)
            TerryE TerryE [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: