Photo Gallery Working!
I’ve decided to go with Exhibit for a photo gallery. I ran into a serious problem with it, so I will post the problem and remedy right here, and hopefully it will help someone else. Since I had made a few posts in the Exhibit section of the WordPress support forums, I’ll just paste the posts that I made on here. Also, I’m going to use this post to test and see if it’s really working
Post One:
i have Exhibit 1.1d, and WordPress 1.5-gamma 2005-02-08. Exhibit is not working …. Does it not work with 1.5 yet? Here are other plugins that I have installed and activated: Adhesive 2.1 beta, Countdown 1.0 alpha 5, EzStatic 1.9, Hello Dolly 1.0, Spam Karma 1.18 alpha 3, WP-CC 0.1.1, and WP Plugin Manager 1.6.4.b. I have followed the installation instructions, and Exhibit is activated in the plugin list; However, there is no Exhibit section in the edit post, write post, edit draft, or anywhere. I did notice that when I browse to a comments page for a post in my WordPress, I get a mySQL error:
WordPress database error: [Table ‘example_com.wp_exhibit’ doesn’t exist]
SELECT ID FROM wp_exhibit WHERE post_ID = 11 and preview = 1 ORDER BY picorder;
Warning: array_chunk() expects parameter 1 to be array, null given in /home/ .dir/ myusername/ example.com/ wp-content/ plugins/ exhibitimg/ exhibit10p.php on line 475
I have changed the name of my domain, but that’s the error. So the table does not exist, but there is no Exhibit section in the modify post area that lets me create it. Perhaps I could create it manually knowing the structure, but it’s supposed to be in the admin area so something must be amiss. So, I disable the plugin to get rid of the error… Any idea how to fix this, or is it a matter of WP1.5 incompatibility??
Post Two:
From other posts in here, it appears that Exhibit is compatible with 1.5… I tried disabling all other plugins, still no dice…. I have manually added the Exhibit table in the mySQL database, including the “picorder” column, still no dice…. Adding the table did, however, get rid of the mySQL error in the comments page, so at least now I can keep Exhibit enabled without worrying about errors. I have tried going to Manage Posts and editing a post, the Exhibit section is not there. I’ve tried starting a new post, clicking “save and continue editing,” and it’s still not there. I have tried downloading “asy_exhibit.zip,” and that didn’t work so I put the “exhibit11d.zip” files back up. I’d really like for this to work, as it seems like a really neat and fitting plugin… Any suggestions??
Post Three:
IMPORTANT …. i’ve fixed the problem…. the problem was that PHP was in CGI mode rather than apache module mode …. i found that suggestion in a little post on here somewhere, but i feel like it’s important to know …. luckily, i have the best hosting provider on the planet. i logged in and changed it to apache module mode with a few clicks. the provider recommends CGI mode for greater security, but they list some drawbacks of it in their knowledge base:
- Custom 404 pages won’t work for .php files with PHP-CGI. Or will they? See n74’s comment below!
- Variables in the URL won’t work without using mod_rewrite (example.com/blah.php/username/info/variable).
- Custom php directives in .htaccess files (php_include_dir /home/user;/home/user/example_dir) won’t work.
- The $_SERVER[’SCRIPT_NAME’] variable will return the php.cgi binary rather than the name of your script
February 12th, 2005 at 9:36 pm
Yessss!!!!!!!!!!!!!!!
I love it! It’s awesome!!!! Excellent Job!!!
You’re so Freakin Smart, Daniel!!!! I knew you’d get it!
Jessica
February 15th, 2005 at 6:43 pm
Hey, cool… I’m glad you got it working. Sorry I didn’t respond in the WordPress forum - I’ve been busy at work on Exhibit version 2.0!
The funny thing is, that’s exaclty the opposite of why you need to do to get it to work on Windows. I’ve heard some complaints about Exhibit’s permission requirements on Dreamhost, so it’s good that there’s positive news on that front.
If you have suggestions for improvement in Exhibit 2.0, or just want to check out how the new version is progressing, please stop by!