Demo RevMax Plugin for OpenX

Questions about openx adserver plugin RevMax?

RevMax OpenX Plugin Features

Author Topic: Redirect Loop/No RevMax tab access at all. 404 Error.  (Read 1852 times)

Offline driddell

  • Newbie
  • *
  • Posts: 5
Redirect Loop/No RevMax tab access at all. 404 Error.
« on: November 02, 2010, 10:14:06 AM »
Trying to use the RevMax plugin.  Just purchased and installed.  Now I receive this:

This webpage has a redirect loop.

The webpage at https://cyberbellum.com/open_x/www/admin/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.


Furthermore, the "page doesn't exist" when I try to access the RevMax tab in the admin.  Based on the URL and where the files are located, there is a file there...yet still doesn't show up.  All permissions are set correctly and all guides were followed precisely. 

What next? 

Offline driddell

  • Newbie
  • *
  • Posts: 5
Re: Redirect Loop/No RevMax tab access at all. 404 Error.
« Reply #1 on: November 02, 2010, 10:34:50 AM »
Set all permissions properly..or so I thought..because I ran the script and it solved the issue.  maybe a missed a folder/file somewhere.

Code: [Select]
<?php
 error_reporting
(E_ALL);
  require_once 
'init.php';
 
     function 
oxMarketChmod($path$filePerm=0644$dirPerm=0755) {
      
// Check if the path exists
      
if(!file_exists($path))
      {
      return(
FALSE);
      }
      
// See whether this is a file
      
if(is_file($path))
      {
      
// Chmod the file with our given permissions
      
chmod($path$filePerm);
      
// If this is a directory...
      
}
 
      elseif(
is_dir($path))
      {
      
// Then get an array of the contents
      
$foldersAndFiles scandir($path);
      
// Remove "." and ".." from the list
      
$entries array_slice($foldersAndFiles2);
      
// Parse every result...
      
foreach($entries as $entry)
      {
      
// And call this function again recursively, with the same permissions
      
oxMarketChmod($path."/".$entry$filePerm$dirPerm);
      }
      
// When we are done with the contents of the directory, we chmod the directory itself
      
chmod($path$dirPerm);
      }
      
// Everything seemed to work out well, return TRUE
      
return(TRUE);
      }
     
$plugins oxMarketChmod(MAX_PATH.'/plugins/etc');
     
$admin oxMarketChmod(MAX_PATH.'/www/admin/plugins');
 
     if (
$admin == $plugins){
     echo 
"All Done, you can <a href='www/admin/'>login</a> now";
     }
     else {
     echo 
'Something has gone wrong... Perhaps oxMarket dosent exist?';
     }
?>

Offline btdsoft

  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • btdsoft.com Independant OpenX Consultant
    • btdsoft.com
Re: Redirect Loop/No RevMax tab access at all. 404 Error.
« Reply #2 on: November 02, 2010, 06:01:30 PM »
Just to clarify, you did get it going ?
Mike

Anyone stumbling across this, please note the file / folders permissions script above is incorrect.
The line should read
Code: [Select]
$plugins = oxMarketChmod(MAX_PATH.'/plugins'not
Code: [Select]
$plugins = oxMarketChmod(MAX_PATH.'/plugins/etc'to ensure proper permissions on all plugin files.

Offline driddell

  • Newbie
  • *
  • Posts: 5
Re: Redirect Loop/No RevMax tab access at all. 404 Error.
« Reply #3 on: November 02, 2010, 08:04:24 PM »
The problem has been fixed.  I thought I changed all the permissions properly.  Anytime I install ANYTHING with a cPanel account I check that.  I must have just missed one.