Page 4 of 5

Re: Install AutoMOD [help needed]

Posted: Tue Apr 20, 2010 8:36 am
by karthikkck
I did "purge the cache" . what I need to do with style? Please give me more detail. Thank you for your fast response.

Re: Install AutoMOD [help needed]

Posted: Tue Apr 20, 2010 9:49 am
by samlemine
karthikkck wrote:I did "purge the cache" . what I need to do with style? Please give me more detail. Thank you for your fast response.
Hello

your fist thing check the cookie settings under general button ok the cookie secure should be disable

then burn the cache and refresh your template .
click the button Log me on automatically each visit and login to the ACP then visite http://www.yourdomain.com/install

if its not ok that means you style has problem try to re-install it or change it by other

Regards

Re: Install AutoMOD [help needed]

Posted: Tue Apr 20, 2010 10:50 am
by karthikkck
Thank you so much for help. I followed your instructions. I think its styling problem. I will check. Thanks again.

Re: Install AutoMOD [help needed]

Posted: Tue Apr 20, 2010 11:58 am
by samlemine
karthikkck wrote:Thank you so much for help. I followed your instructions. I think its styling problem. I will check. Thanks again.
you are welcome

i had the same problem before

Re: Install AutoMOD [help needed]

Posted: Thu May 06, 2010 10:18 pm
by Sug_97
First off, I must warn you... I'm a total noob at this, so please bare with me... I appreciate all the help I can get:

I'm running phpBB 3.0.6.
  • I'm uploading AutoMod to my cPanel public_html => forum, through Filezilla.

    I was able to match up folder to folder and uploaded each successfully.

    I am now at the last folder umil and I don't see a folder called that in my forum folder.
My questions:
  • 1. Does it sound like I'm doing it right this time? If not, any "complete idiot instructions" would be greatly appreciated.

    2. Where should I upload this umil folder?

Re: Install AutoMOD [help needed]

Posted: Fri May 07, 2010 3:34 am
by nanshare
hi i am having a login page error

i had tried to install but still i dont have any solution

its keep on asking

Code: Select all

http://rapidshare.com/files/384421680/cookie.jpg.html

Re: Install AutoMOD [help needed]

Posted: Fri Aug 27, 2010 11:45 pm
by Grifftech
I am using fileZilla and have navigated to domain/public_html/forum do I know replace the folders on my site with the folders from AutoMod ie Admin, Develop, Includes, etc etc?

I am so lost :)

Re: Install AutoMOD [help needed]

Posted: Sat Aug 28, 2010 6:55 am
by Grifftech
I give up

Re: Install AutoMOD [help needed]

Posted: Wed Dec 15, 2010 7:23 pm
by pyroplantfreak
I need help. I am sorry if this has been repeated.

I am running the latest version of phpbb.

I have been having great luck until today.

I tried to install the automod this is what i am getting

http://www.nhpyro.org/forums

I uncompressed the zip folder using go daddy's ftp.

I copied and over wrote the files in my "forums" directory.

again you can see where I am at.....

I will appreciate the help.

These are the errors I am getting.

Warning: require(./includes/acm/acm_file.php) [function.require]: failed to open stream: No such file or directory in /home/content/n/h/p/nhpyro/html/forums/common.php on line 189

Fatal error: require() [function.require]: Failed opening required './includes/acm/acm_file.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/n/h/p/nhpyro/html/forums/common.php on line 189


I cleared the cache.
I moved the files from the upload directory and overwrote them into the forums directory.

What do you guys think?

I can not get to my ACP page...Bummer.

Thank you in advance for help.

Re: Install AutoMOD [help needed]

Posted: Wed Dec 15, 2010 7:55 pm
by DavidIQ
That would happen if you're missing includes/acm/acm_file.php

Re: Install AutoMOD [help needed]

Posted: Wed Dec 15, 2010 10:06 pm
by pyroplantfreak
Do I find that file and drop it into includes file?

Then go to http://www.nhpyro.org/forums/install?

My site is http://www.nhpyro.org/forums

There is only a acp folder now in the includes folder....

Re: Install AutoMOD [help needed]

Posted: Thu Dec 16, 2010 12:17 am
by pyroplantfreak
DavidIQ wrote:That would happen if you're missing includes/acm/acm_file.php
I created a acm folder and dropped in the whoisit code from 12/7/2008.

Saved it on a notepad file called acm_file.php.

Uploaded it via godaddy to the new folder acm.

Went to my browser and entered http://www.nhpyro.org/forums/install

and still no luck.

Thoughts?

Code: Select all

whoisit script from 12/7/2008

<?php
/**
*
* @package acm
* @version $Id: acm_file.php 8479 2008-03-29 00:22:48Z naderman $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
   exit;
}

/**
* ACM File Based Caching
* @package acm
*/
class acm
{
   var $vars = array();
   var $var_expires = array();
   var $is_modified = false;

   var $sql_rowset = array();
   var $sql_row_pointer = array();
   var $cache_dir = '';

   /**
   * Set cache path
   */
   function acm()
   {
      global $phpbb_root_path;
      $this->cache_dir = $phpbb_root_path . 'cache/';
   }

   /**
   * Load global cache
   */
   function load()
   {
      global $phpEx;
      if (file_exists($this->cache_dir . 'data_global.' . $phpEx))
      {
         @include($this->cache_dir . 'data_global.' . $phpEx);
      }
      else
      {
         return false;
      }

      return true;
   }

   /**
   * Unload cache object
   */
   function unload()
   {
      $this->save();
      unset($this->vars);
      unset($this->var_expires);
      unset($this->sql_rowset);
      unset($this->sql_row_pointer);

      $this->vars = array();
      $this->var_expires = array();
      $this->sql_rowset = array();
      $this->sql_row_pointer = array();
   }

   /**
   * Save modified objects
   */
   function save()
   {
      if (!$this->is_modified)
      {
         return;
      }

      global $phpEx;

      if ($fp = @fopen($this->cache_dir . 'data_global.' . $phpEx, 'wb'))
      {
         @flock($fp, LOCK_EX);
         fwrite($fp, "<?php\n\$this->vars = " . var_export($this->vars, true) . ";\n\n\$this->var_expires = " . var_export($this->var_expires, true) . "\n?>");
         @flock($fp, LOCK_UN);
         fclose($fp);

         @chmod($this->cache_dir . 'data_global.' . $phpEx, 0666);
      }
      else
      {
         // Now, this occurred how often? ... phew, just tell the user then...
         if (!@is_writable($this->cache_dir))
         {
            trigger_error($this->cache_dir . ' is NOT writable.', E_USER_ERROR);
         }

         trigger_error('Not able to open ' . $this->cache_dir . 'data_global.' . $phpEx, E_USER_ERROR);
      }

      $this->is_modified = false;
   }

   /**
   * Tidy cache
   */
   function tidy()
   {
      global $phpEx;

      $dir = @opendir($this->cache_dir);

      if (!$dir)
      {
         return;
      }

      while (($entry = readdir($dir)) !== false)
      {
         if (!preg_match('/^(sql_|data_(?!global))/', $entry))
         {
            continue;
         }

         $expired = true;
         @include($this->cache_dir . $entry);
         if ($expired)
         {
            $this->remove_file($this->cache_dir . $entry);
         }
      }
      closedir($dir);

      if (file_exists($this->cache_dir . 'data_global.' . $phpEx))
      {
         if (!sizeof($this->vars))
         {
            $this->load();
         }

         foreach ($this->var_expires as $var_name => $expires)
         {
            if (time() > $expires)
            {
               $this->destroy($var_name);
            }
         }
      }
      
      set_config('cache_last_gc', time(), true);
   }

   /**
   * Get saved cache object
   */
   function get($var_name)
   {
      if ($var_name[0] == '_')
      {
         global $phpEx;

         if (!$this->_exists($var_name))
         {
            return false;
         }

         @include($this->cache_dir . "data{$var_name}.$phpEx");
         return (isset($data)) ? $data : false;
      }
      else
      {
         return ($this->_exists($var_name)) ? $this->vars[$var_name] : false;
      }
   }

   /**
   * Put data into cache
   */
   function put($var_name, $var, $ttl = 31536000)
   {
      if ($var_name[0] == '_')
      {
         global $phpEx;

         if ($fp = @fopen($this->cache_dir . "data{$var_name}.$phpEx", 'wb'))
         {
            @flock($fp, LOCK_EX);
            fwrite($fp, "<?php\n\$expired = (time() > " . (time() + $ttl) . ") ? true : false;\nif (\$expired) { return; }\n\n\$data = " . var_export($var, true) . ";\n?>");
            @flock($fp, LOCK_UN);
            fclose($fp);

            @chmod($this->cache_dir . "data{$var_name}.$phpEx", 0666);
         }
      }
      else
      {
         $this->vars[$var_name] = $var;
         $this->var_expires[$var_name] = time() + $ttl;
         $this->is_modified = true;
      }
   }

   /**
   * Purge cache data
   */
   function purge()
   {
      // Purge all phpbb cache files
      $dir = @opendir($this->cache_dir);

      if (!$dir)
      {
         return;
      }

      while (($entry = readdir($dir)) !== false)
      {
         if (strpos($entry, 'sql_') !== 0 && strpos($entry, 'data_') !== 0 && strpos($entry, 'ctpl_') !== 0 && strpos($entry, 'tpl_') !== 0)
         {
            continue;
         }

         $this->remove_file($this->cache_dir . $entry);
      }
      closedir($dir);

      unset($this->vars);
      unset($this->var_expires);
      unset($this->sql_rowset);
      unset($this->sql_row_pointer);

      $this->vars = array();
      $this->var_expires = array();
      $this->sql_rowset = array();
      $this->sql_row_pointer = array();

      $this->is_modified = false;
   }

   /**
   * Destroy cache data
   */
   function destroy($var_name, $table = '')
   {
      global $phpEx;

      if ($var_name == 'sql' && !empty($table))
      {
         if (!is_array($table))
         {
            $table = array($table);
         }

         $dir = @opendir($this->cache_dir);

         if (!$dir)
         {
            return;
         }

         while (($entry = readdir($dir)) !== false)
         {
            if (strpos($entry, 'sql_') !== 0)
            {
               continue;
            }

            // The following method is more failproof than simply assuming the query is on line 3 (which it should be)
            $check_line = @file_get_contents($this->cache_dir . $entry);

            if (empty($check_line))
            {
               continue;
            }

            // Now get the contents between /* and */
            $check_line = substr($check_line, strpos($check_line, '/* ') + 3, strpos($check_line, ' */') - strpos($check_line, '/* ') - 3);

            $found = false;
            foreach ($table as $check_table)
            {
               // Better catch partial table names than no table names. ;)
               if (strpos($check_line, $check_table) !== false)
               {
                  $found = true;
                  break;
               }
            }

            if ($found)
            {
               $this->remove_file($this->cache_dir . $entry);
            }
         }
         closedir($dir);

         return;
      }

      if (!$this->_exists($var_name))
      {
         return;
      }

      if ($var_name[0] == '_')
      {
         $this->remove_file($this->cache_dir . 'data' . $var_name . ".$phpEx", true);
      }
      else if (isset($this->vars[$var_name]))
      {
         $this->is_modified = true;
         unset($this->vars[$var_name]);
         unset($this->var_expires[$var_name]);

         // We save here to let the following cache hits succeed
         $this->save();
      }
   }

   /**
   * Check if a given cache entry exist
   */
   function _exists($var_name)
   {
      if ($var_name[0] == '_')
      {
         global $phpEx;
         return file_exists($this->cache_dir . 'data' . $var_name . ".$phpEx");
      }
      else
      {
         if (!sizeof($this->vars))
         {
            $this->load();
         }

         if (!isset($this->var_expires[$var_name]))
         {
            return false;
         }

         return (time() > $this->var_expires[$var_name]) ? false : isset($this->vars[$var_name]);
      }
   }

   /**
   * Load cached sql query
   */
   function sql_load($query)
   {
      global $phpEx;

      // Remove extra spaces and tabs
      $query = preg_replace('/[\n\r\s\t]+/', ' ', $query);
      $query_id = sizeof($this->sql_rowset);

      if (!file_exists($this->cache_dir . 'sql_' . md5($query) . ".$phpEx"))
      {
         return false;
      }

      @include($this->cache_dir . 'sql_' . md5($query) . ".$phpEx");

      if (!isset($expired))
      {
         return false;
      }
      else if ($expired)
      {
         $this->remove_file($this->cache_dir . 'sql_' . md5($query) . ".$phpEx", true);
         return false;
      }

      $this->sql_row_pointer[$query_id] = 0;

      return $query_id;
   }

   /**
   * Save sql query
   */
   function sql_save($query, &$query_result, $ttl)
   {
      global $db, $phpEx;

      // Remove extra spaces and tabs
      $query = preg_replace('/[\n\r\s\t]+/', ' ', $query);
      $filename = $this->cache_dir . 'sql_' . md5($query) . '.' . $phpEx;

      if ($fp = @fopen($filename, 'wb'))
      {
         @flock($fp, LOCK_EX);

         $query_id = sizeof($this->sql_rowset);
         $this->sql_rowset[$query_id] = array();
         $this->sql_row_pointer[$query_id] = 0;

         while ($row = $db->sql_fetchrow($query_result))
         {
            $this->sql_rowset[$query_id][] = $row;
         }
         $db->sql_freeresult($query_result);

         $file = "<?php\n\n/* " . str_replace('*/', '*\/', $query) . " */\n";
         $file .= "\n\$expired = (time() > " . (time() + $ttl) . ") ? true : false;\nif (\$expired) { return; }\n";

         fwrite($fp, $file . "\n\$this->sql_rowset[\$query_id] = " . var_export($this->sql_rowset[$query_id], true) . ";\n?>");
         @flock($fp, LOCK_UN);
         fclose($fp);

         @chmod($filename, 0666);

         $query_result = $query_id;
      }
   }

   /**
   * Ceck if a given sql query exist in cache
   */
   function sql_exists($query_id)
   {
      return isset($this->sql_rowset[$query_id]);
   }

   /**
   * Fetch row from cache (database)
   */
   function sql_fetchrow($query_id)
   {
      if ($this->sql_row_pointer[$query_id] < sizeof($this->sql_rowset[$query_id]))
      {
         return $this->sql_rowset[$query_id][$this->sql_row_pointer[$query_id]++];
      }

      return false;
   }

   /**
   * Fetch a field from the current row of a cached database result (database)
   */
   function sql_fetchfield($query_id, $field)
   {
      if ($this->sql_row_pointer[$query_id] < sizeof($this->sql_rowset[$query_id]))
      {
         return (isset($this->sql_rowset[$query_id][$this->sql_row_pointer[$query_id]][$field])) ? $this->sql_rowset[$query_id][$this->sql_row_pointer[$query_id]][$field] : false;
      }

      return false;
   }

   /**
   * Seek a specific row in an a cached database result (database)
   */
   function sql_rowseek($rownum, $query_id)
   {
      if ($rownum >= sizeof($this->sql_rowset[$query_id]))
      {
         return false;
      }

      $this->sql_row_pointer[$query_id] = $rownum;
      return true;
   }

   /**
   * Free memory used for a cached database result (database)
   */
   function sql_freeresult($query_id)
   {
      if (!isset($this->sql_rowset[$query_id]))
      {
         return false;
      }

      unset($this->sql_rowset[$query_id]);
      unset($this->sql_row_pointer[$query_id]);

      return true;
   }

   /**
   * Removes/unlinks file
   */
   function remove_file($filename, $check = false)
   {
      if ($check && !@is_writeable($this->cache_dir))
      {
         // E_USER_ERROR - not using language entry - intended.
         trigger_error('Unable to remove files within ' . $this->cache_dir . '. Please check directory permissions.', E_USER_ERROR);
      }

      return @unlink($filename);
   }
}

?>

Re: Install AutoMOD [help needed]

Posted: Thu Dec 16, 2010 3:58 am
by DavidIQ
It looks to me like you've somehow managed to delete your entire forum. You'll need to upload a fresh set of phpBB files to your forum without replacing config.php

Re: Install AutoMOD [help needed]

Posted: Mon Dec 20, 2010 2:11 pm
by pyroplantfreak
DavidIQ wrote:It looks to me like you've somehow managed to delete your entire forum. You'll need to upload a fresh set of phpBB files to your forum without replacing config.php

Called Godaddy and recovered my forum.

But, I am still having trouble. After hours on the phone we managed to get all the files (i think) where they need to be.

Now, when I type www.nhpyro.org/install I at least can get to my ACP page where it says in red to remove or rename the install file.....Ok I do that, (that is rename the install file) but then nothing seems to happen. I go back to the ACP page where there is still no automod tab next to system.

It seems I am getting closer. How can I get past this last hurdle?

Thank you in advance.

Re: Install AutoMOD [help needed]

Posted: Mon Dec 20, 2010 2:40 pm
by DavidIQ
Did you run the installation before you renamed the install directory?