开发者 |
frumph
johncoswell |
---|---|
更新时间 | 2011年2月26日 13:30 |
捐献地址: | 去捐款 |
PHP版本: | 2.5.1 及以上 |
WordPress版本: | 3.0 |
Check the permissions on the theme directory and on the comicpress-config.php file itself. Both of these need to be writable by the user that the Webserver runs as. For more information on this, contact your Webhost. Alternatively, if you can't automatically write to the comicpress-config.php file, the config that would have been written will be shown on-screen. Copy and paste this into your comicpress-config.php file.
The error you're most likely to see when working with config files in ComicPress Manager contains the following string: [function.main]: failed to open stream: No such file or directory This means that functions.php is attempting to include the comicpress-config.php file from your theme directory and comicpress-config.php does not exist. Check your theme folder for the following:
Depending on your hosting type and set up, you may need to use your FTP client's chmod command or your Webhost's file management frontend to increase the permissions of your folders. chmod 775 or chmod 777 are both settings that may work on your hosting.
You need the PHP Zip extension installed to be able to process Zip files. Ask your Webhost to install it.
The upload_max_filesize or max_post_size settings on your server may be set too low. You can do one of the following:
There seems to be an issue with FastCGI for IIS, where permissions on files created by the Webserver process have no permissions whatsoever, and need to have permissions granted by a user with Administrator privileges.
Additionally, there should only be one instance of upload_tmp_file
in your php.ini file, and the directory specified needs to be writable by the Webserver, and has to have no backslash at the end of the path:
upload_tmp_dir = "c:\inetpub\temp\uploads"
There are three lines at the top of comicpress_manager_config.php that define the $access_level
of the plugin. Uncomment the line that defines the level of access you want to give and comment out the others.
Change the "Archive Width" in your ComicPress config (comicpress-config.php in your theme) to the thumbnail width you wish to have for both Archive and RSS. Note that only ComicPress 2.7 supports RSS thumbnail width adjustment.
You will need either GD library support compiled in or loaded with PHP, or the ImageMagick "convert" and "identify" binaries in your path. If neither of these are available, you will be unable to generate thumbnails. Your thumbnail directories also need to be writable by the Webserver process.
Disable the appropriate options on the ComicPress Manager configuration page.
Change the JPEG thumbnail quality on the ComicPress Manager configuration page to a value between 0 (ugly & small filesize) to 100 (no compression).
If you are importing a large number of files, especially if you're generating thumbnails, the amount of time it would take to process the comics can exceed the time allotted by your Webhost for a script to run. ComicPress Manager will attempt to split up the Import into smaller chunks to work around this, but it may still fail in rare cases. If it does, you can do the following:
set_time_limit
command to the top of the pluginmax_execution_time
for your site, or use an .htaccess file to change it yourself.You can disable sanity checks and upgrade messages on the ComicPress Manager configuration page.
You can change the date format on the ComicPress Manager configuration page. Change the format to a date
compatible format. Then, in your ComicPress theme, in the functions.php file, change every instance of Y-m-d
to your new format (or better yet, use CPM_DATE_FORMAT directly, as comicpress_manager_config.php is loaded with every page load in WordPress).
Disable the appropriate options on the ComicPress Manager configuration page.
Get the category slug for the Storyline category that will represent the new separate comic. Create directories within your existing comic directories that are named after this slug. Make sure the directories are writable, and then go to ComicPress Config and choose the new comic category. All future file operations will only deal with this directory. This feature is still experimental, and currently requires you to write the comic file handling code for your ComicPress functions.php file.
Feel free to contact me, or better yet, send a translation in. The POT file is in the plugin directory. I'm still new to this, so if I'm doing something wrong in the code, please tell me. :)
File a bug on the ComicPress Bug Tracker. If asked, provide the info given when you click the Show Debug Info link on the left-hand side. Make sure you're running the most recent stable version of ComicPress Manager, as there are a lot of critical bug fixes between versions. If it's a serious problem, such as WordPress becoming non-functional or blank screens/errors after you perform certain operations, you will be asked to provide error logs for your server. If you don't know how to get access to these, talk with your Webhost.