Results 1 to 6 of 6

Thread: Upgrading to 3_2

  1. #1
    Join Date
    Sep 2002
    Location
    UK
    Posts
    89

    Default Upgrading to 3_2

    Having upgraded to 3_2, I note there is a small bug in detail.php

    at the top of the code place the following after the <?PHP

    include("application.php");

    Failing to do so will render your cached pages useless as the cached files are stored with the session_id appended to the file name meaning your cache directory will fill with redundant files.

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by markbrooks
    Having upgraded to 3_2, I note there is a small bug in detail.php

    at the top of the code place the following after the <?PHP

    include("application.php");

    Failing to do so will render your cached pages useless as the cached files are stored with the session_id appended to the file name meaning your cache directory will fill with redundant files.
    I did it differently in v3.2E so I would be interested in dody's position on this. But I agree that the session_id only makes sense for the index.php page ( and then only if you have "personal" stuff on the page.



    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Sep 2002
    Location
    UK
    Posts
    89

    Default

    Quote Originally Posted by esm
    I did it differently in v3.2E so I would be interested in dody's position on this. But I agree that the session_id only makes sense for the index.php page ( and then only if you have "personal" stuff on the page.



    I agree, A workaround within all other PHP files, instead of including application.php if to turn off the sending of the session ID, which seems to have done the trick, no more cached files yet with the session ID appended.

    Anyone who has upgraded to version 3.2 and who has been using ESM's pagnation mod producing URL's like category100.html and detail100.html may have been noticing a lot of 404 pages served.

    In your .htaccess file, include these 4 lines instead of just the 2 as supplied with the IndexU code.

    RewriteRule ^category(.*).html browse.php?cat=$1
    RewriteRule ^browse-(.*)-(.*)-(.*).html browse.php?cat=$2&pg_which=$3
    RewriteRule ^detail-(.*)-(.*).html detail.php?id=$2
    RewriteRule ^detail(.*).html detail.php?id=$1

    This enables your server to serve pages in the new IndexU format, and the old way if you were using ESM's previous pagnaition mod.

    One further tip and for increased performance. Download the latest version of ADODB from http://adodb/sourceforge.net.

    Once downloaded, unzip into a local directory. Copy adodb-sessions.php from any previous copy of indexu/lib/adodb into the new version of adodb.

    Upload the new adodb onto your server, I suggest into folder /lib/adodb1

    When on your server simply rename your current adodb to not_used and rename adodb1 back to adodb, the increase in performance and speed will be noticed instantly.

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    rather than load application.php, couldn't you just use:

    Code:
    // mod
    ini_set('session.use_trans_sid', "0");
    and the whole thing about using $_SERVER["QUERY_STRING"] seems just wrong.


    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by markbrooks
    Once downloaded, unzip into a local directory. Copy adodb-sessions.php from any previous copy of indexu/lib/adodb into the new version of adodb.

    Upload the new adodb onto your server, I suggest into folder /lib/adodb1
    I looked at the adodb-sessions.php file on my server and did not notice anything relating to INDEXU or my site. so.... ?????

    I did unzip the file and there is lots of stuff.... can you be be more specific as to what to upload?
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  6. #6
    Join Date
    Sep 2002
    Location
    UK
    Posts
    89

    Default

    Sure ESM,

    Once unzipped on local directory, keep the file structure intact. The version of adodb-sessions.php supplied seems to cause errors like warning cannot add header information output already sent.

    What you do, simply copy /themes/lib/adodb/adodb-sessions.php from a current copy of indexu into the root folder of the latest version of adodb, then upload to the server as is. The enhancement in performance I have noticed today on the generation of pages seems to have increased considerably.

Similar Threads

  1. Upgrading from Lite to Paid Version
    By kaelin in forum Tutorials, Hints & Tips
    Replies: 4
    Last Post: 10-27-2003, 07:46 PM
  2. Upgrading from 3.04 to 3.1
    By player in forum v5.x
    Replies: 6
    Last Post: 06-19-2003, 08:27 PM
  3. Upgrading to commercial version ???
    By ideavirus in forum v5.x
    Replies: 8
    Last Post: 07-11-2002, 06:38 AM
  4. Upgrading to pro version ??
    By ideavirus in forum Pre-Sales Questions
    Replies: 3
    Last Post: 06-09-2002, 11:20 AM
  5. Is it worth upgrading from Version 2
    By Phil Latio in forum v5.x
    Replies: 2
    Last Post: 12-22-2001, 04:51 AM

Posting Permissions

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