• I moved my site to a box that had PHP 5.3.2 on it. I had several plugins that failed due to a change in the syntax for functions.

    NextGen gallery didn’t utterly fail, but I’m unable to add new galleries. It creates a new directory in wp-content/gallery/ but nothing gets written to the wp_ngg_gallery table in the database.

    Has anyone else seen this issue, and fixed it?

    Thanks.
    Jack

Viewing 3 replies - 1 through 3 (of 3 total)
  • I just installed on a PHP 5.3.2 Ubuntu Linux box, and when I added a new gallery just now I do see both the new file directory and the new entry in the wp_ngg_gallery table.

    Thread Starter painfreecomputing

    (@painfreecomputing)

    Hmmm. I have a lot of galleries and photos, but I can back up the tables and then try a clean install. If it works, I’ll import the data back in.

    Thanks.
    Jack

    Thread Starter painfreecomputing

    (@painfreecomputing)

    Problem solved. It was not a NextGen Gallery issue after all. The problem was due to a procedural error on my part. Between the time I backed up my original Nextgen Gallery data tables, and the time I installed on the new server, there was a plugin update. The new server got the NEW NextGen Gallery, which had a new column for “slug”. Since I overwrote this table when I imported the old data, that column was missing. This caused all subsequent database writes to fail, since they tried to write to include a slug for the album. There were a couple of other column constraints that had changed with the new plugin, too (NOT NULL was added). In my “test” installation, I manually created the additional “slug” column, and modified the two other columns so that the data table structure is identical to the new version…problem solved. I then took the three sql statements and put them into one .sql file and imported that into my “production” database. Again, problem solved.

    I doubt anyone will have the problem I had, but here’s a good hint for general troubleshooting, and it’s how I found the problem: Turn on debugging and check the output. In wp-config.php, add the following line:
    define('WP_DEBUG', true);
    (remove it or comment it out after you’re finished debugging.

    Jack

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘NGG and PHP 5.3.2’ is closed to new replies.