Page 2 of 2 FirstFirst 12
Results 21 to 29 of 29

Thread: Links Director Module for CMPS

  1. #21
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Links Director Module for CMPS

    cPanel is software that's commonly installed on servers to help you manage most everything with the server. Some hosting companies may use Plesk, or a variety of other software products, but cPanel is sort of the "standard".

    The error log in var/log/httpd should be about the same thing if I'm thinking correctly, so you should be able to cause the error, download that file, and then post at least the first few lines here (or the whole thing assuming it's not too huge).

  2. #22
    Join Date
    Apr 2007
    Posts
    160

    Default Re: Links Director Module for CMPS

    This is the only error data that I could catch, and I can't guarantee it's related to this issue...

    Code:
    [Wed May 14 13:12:21 2008] [notice] Digest: generating secret for digest authentication ...
    [Wed May 14 13:12:21 2008] [notice] Digest: done
    [Wed May 14 13:12:21 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
    [Wed May 14 13:12:21 2008] [notice] LDAP: SSL support unavailable
    [Wed May 14 13:12:21 2008] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations
    [Wed May 14 13:16:03 2008] [error] [client 65.55.232.24] script '/var/www/vincentownersclub/forum/cmps_index.php' not found or unable to stat
    [Wed May 14 13:16:04 2008] [error] [client 65.55.232.24] File does not exist: /var/www/vincentownersclub/forum/:
    [Wed May 14 13:18:01 2008] [error] [client 86.11.109.152] File does not exist: /var/www/vincentownersclub/favicon.ico, referer: http://www.vincentownersclub.co.uk/

  3. #23
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Links Director Module for CMPS

    Unfortunately that's not much help. We can try a .htaccess file to show the errors too though.

    Create a plain text file named .htaccess with the following lines or add the following lines to an existing .htaccess file in your root directory:
    Code:
    php_flag display_errors on
    php_value error_reporting 7
    Then enable the module again and see if there's an error on the screen this time.

  4. #24
    Join Date
    Apr 2007
    Posts
    160

    Default Re: Links Director Module for CMPS

    Well - I think we're getting somewhere now.

    I put that code into my existing .htaccess file, and it now reads as follows:

    Code:
    Redirect 301 /index.html http://www.vincentownersclub.co.uk/forum
    php_flag display_errors on
    php_value error_reporting 7
    I then re-enabled the module and whilst viewing it on my Mac browser (Safari), the browser generates an error as follows:

    Code:
    Safari can’t open the page “http://www.vincentownersclub.co.uk/”. The error was: “cannot decode raw data” (NSURLErrorDomain:-1015) Please choose Report Bugs to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.
    So, not much help there.

    I then tried viewing it via FireFox for Mac (v2.0.0.14)
    Absolutely nothing happens here, and I just end up with a blank screen.

    I then tried viewing it via Opera, and this is where I had a bit more luck.
    It spits out the following error:
    Code:
    Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /var/www/vincentownersclub/photos/inc_randomimage.php on line 54
    
    Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /var/www/vincentownersclub/photos/inc_randomimage.php on line 119
    
    Followed by a load of code, which I haven't pasted here, as it really is just rubbish
    I asked my colleague to try it on a PC using Internet Explorer, and that just tells him that it cannot display the web page, so I think the Opera browser report is our best option.

    What do you make of those two errors?

  5. #25
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Links Director Module for CMPS

    Yup, that's what I was looking for. Looks like it is something to do with the MySQL connection code... The only thing I can really suggest would be to check the values in your inc_randomimage.php file one more time to make sure they're all correct. Wouldn't hurt to open your PP config file as well and copy/paste the values from there just to make sure there's no room for error. Also make sure that 'photopost' is actually your database name as specified in the red line below... It looks like the MySQL connection is being made, but it seems like it's having a problem connecting to the database specified.
    Code:
    $link = mysql_connect ("localhost", "username", "password") or die('I cannot connect to the database.');
    mysql_select_db ("databasename")or die("Could not select photopost database");

  6. #26
    Join Date
    Apr 2007
    Posts
    160

    Default Re: Links Director Module for CMPS

    This is my config-inc.php file from the photopost directory, and I copied the information exactly as in here directly into my inc_randomimage.php file. The only things I've removed before I posted here are the passwords and the vBulletin Serial Number.

    Still the same thing.

    Perhaps we should give up?

    I've just spoken with my host, and they have confirmed my username and password to MySql database are OK.



    Code:
    <?php
    //**************** External Header Configuration ****************//
    //
    // the isset prevents vB headers from being sent during login/logout -
    // do not remove this line as it may cause the vB headers to interfere with the login/logout process
    //
    // To include the file, first edit the header-inc.php
    //
    
    if ( !isset($skip_exheader) ) {
        include "header-inc.php";
    }
    
    // PhotoPost Pro Version Number
    $VERSION = "6.1";
    
    // Path to your PhotoPost installation - no end slashes
    $PP_PATH = "/var/www/vincentownersclub/photos";
    
    // All of the .tmpl files are placed into a directory called "templates"; if you wish to change the
    // name of the directory to something else to protect your files, you may do so and indicate the name
    // of the directory here - this is not a path to the directory, just the directory name; the directory
    // cannot be moved from the PhotoPost main directory.
    $TMPL_PATH = "templates";
    
    //**************** MySQL Database Configuration ****************//
    // PhotoPost database host address, or leave as localhost
    $host="localhost";
    
    // PhotoPost's database name
    $database="photopost";
    
    // MySQL username and password to access PhotoPost's database
    //
    // These two variables are for the userid and password needed to access
    // the PhotoPost database named above.
    $mysql_user="root";
    $mysql_password="xxxxxxx";
    
    // If you want to use a prefix for your database, enter it here.
    // NOTE: This variable can only be set PRIOR to your first installation of PhotoPost;
    // existing databases will not be changed and you will be unable to connect if you change
    // this variable after performing a default installation.
    $pp_db_prefix = "pp_";
    
    // User database host address, or leave as localhost
    $host_bb="localhost";
    
    // User database MySQL database name
    //
    // This is the variable for the User Database; if you are using Internal
    // as your registration system, then these variables are the same as the
    // ones above.  If you are linking to a message board system,
    // thse variables should be set to the database, user and password for that
    // database.
    $database_bb="vbulletin";
    
    // MySQL username and password to access user database
    //
    // These two variables are for the userid and password needed to access
    // the PhotoPost or BB database.
    $user_bb="root";
    $password_bb="xxxxxxx";
    
    //
    // VB3 License Number required for VB3 integration
    // You can find this number by checking your index.php file in your vB3 directory
    // The 4th line in the file looks like:
    // || # vBulletin 3.0.0 - Licence Number ########
    // It is the ######## number you need to place below.
    $vblicense = "xxxxxxx";
    
    //**************** Application Configuration ****************//
    
    // Default Language
    // This needs to be set to the name of the directory used inside of the languages directory
    $pplang = "english";
    
    //////////////////////// Application Configuration ////////////////////////////////
    // These variables set the path to the UNZIP, MOGRIFY and JHEAD commands on your system
    //
    // This only needs to be set if you are allowing ZIP uploads. These are full paths,
    // including the name of the executable (.exe extensions for windows)
    // The -j option for Info-ZIP's UNZIP tells it to ignore paths in ZIP file
    //
    // This option is only used in the event the internal UNZIP does not work for you
    //$zip_command = "/usr/bin/unzip -j";
    
    // Path to MOGRIFY executable
    // There should be no spaces in the directory names, use short names if necessary.
    // Examples:
    // $mogrify_command = "c:\progra~1\imagemagick\mogrify.exe";
    // $mogrify_command = "c:\ImageMagick\mogrify.exe";
    $mogrify_command = "/usr/bin/X11/mogrify";
    
    ?>
    Last edited by grahamsmythe; 05-15-2008 at 02:08 PM.

  7. #27
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Links Director Module for CMPS

    There's a couple of last things you can try... Don't really see why they would work, but it wouldn't hurt to try them.

    Admin CP => vBa CMPS => Default Settings => Main Options => Portal Output Global Variables
    Try adding 'pp_db_prefix' to that setting.

    If that doesn't help, check your 'Process PHP File Modules Within A Function' setting just below and set it to the opposite of what it's currently set to.

  8. #28
    Join Date
    Apr 2007
    Posts
    160

    Default Re: Links Director Module for CMPS

    Hey, guess what?

    Neither of those things worked either!

    I think we've hit against a brick wall - don't you?

    With your expert knowledge of php, why don't you write your own module, then sell it, as a stable, easy to install module? - There must be a market for it - after all, I'd be the first to put my hand in my pocket and buy it!

  9. #29
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Links Director Module for CMPS

    Yea, I think I'm pretty much out of ideas now. :/
    You could try posting the exact errors in the thread where you downloaded the module from on PP's site. Not sure if they would be able to be of any more help, but I'm sure they're more familiar with their own code than I am and it could be a more common problem they've dealt with before and have a better idea of how to fix.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Latest or Hot Links Module (CMPS 2.2.1 + Links D.2.0rc1)
    By nostalgia in forum Add-On Modules (version 3.x & 2.x)
    Replies: 114
    Last Post: 03-06-2009, 11:25 PM
  2. Using vbA Links as module in CMPS?
    By JamesCybert in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 09-21-2007, 11:56 AM
  3. Newest/Random Links Block (from links/index.php) as a CMPS Module?
    By neverstop in forum "How Do I..." Questions
    Replies: 3
    Last Post: 07-19-2007, 05:27 AM
  4. Can vba Links be modified to look like a Yahoo director?
    By ludachris in forum Pre-Sale Questions
    Replies: 17
    Last Post: 04-12-2007, 09:13 AM
  5. vbavanced links director german language ?
    By Thoman in forum Pre-Sale Questions
    Replies: 1
    Last Post: 02-10-2007, 02:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •