11 pointsStarting to get into this DEV thingI'm new here
zenissin
Member
—
12th January 2012
Hello *,
I'm running WP (MU) 331 on freebsd 8.2 with the multi domain plugin (and that's it).
For whatever reasons, when I goto upload images in the gallery wizards, I get a blank image in the gui and the home page is not changed. The file is uploaded into the proper blogs.dir but I can't even cancel.
I saw some other posts with similar errors, and they suggested mod_security or a lack of php-gd so I disabled mod_security and rebuilt gd, but no dice.
My apache error log suggests missing files for the gallery plugin, but I figured I'd ask.
It's my machine (not hosted), so I can do whatever I need to it.
I'm running WP (MU) 331 on freebsd 8.2 with the multi domain plugin (and that's it).
For whatever reasons, when I goto upload images in the gallery wizards, I get a blank image in the gui and the home page is not changed. The file is uploaded into the proper blogs.dir but I can't even cancel.
I saw some other posts with similar errors, and they suggested mod_security or a lack of php-gd so I disabled mod_security and rebuilt gd, but no dice.
My apache error log suggests missing files for the gallery plugin, but I figured I'd ask.
It's my machine (not hosted), so I can do whatever I need to it.
Tried it, and it does fail. File uploads fine, but I get a broken image (screenshot attached) and the following errors in the error log.
[Thu Jan 12 19:13:36 2012] [error] [client 71.63.244.60] PHP Fatal error: Call to undefined function wp_get_the_attachment_link() in /usr/local/www/wordpressdir/wp-content/themes/gallery/library/functions/loop-functions.php on line 324, referer: http://some.domain.com/wp-admin/media.php?attachment_id=14&action=edit
[Thu Jan 12 19:13:36 2012] [error] [client 71.63.244.60] File does not exist: /usr/local/www/wordpressdir/files, referer: http://some.domain.com/?attachment_id=14
I uploaded to that site's media, and tried to click on the link in media.
Guessing this is some sort of problem with the domain mapping. Why is it trying to look for files directly under the wordpress directory? It should be looking in blogs.dir/number/ right?
I'm leery of posting the exact domains, but basically I own
domain.com
*.domain.com and domain.com points to my server. I have another dns entry for test.anotherdomain.com pointing at me also.
I configured wpmu for domain.com and then a mapping for test.anotherdomain.com to point to anotherdomain.domain.com
That looks silly, but... If you want to look at it directly, send me a message and I can easily give you access. I appreciate the help Sir!
Yep, switched and could immediately upload and view in the media library. What else should I be looking at?
.htaccess?
apache config?
Do you know if there are any other requirements for gallery?
I know that php-gd seems to be required, but I'm wondering if something on the system is missing.
I'd like to use Gallery as it looks perfect for at least one site I need to put up, but I'm starting to wonder...
Argg. Well, this was my fault after all. I was busy using another theme and everything was going fine until I attempted to use civilized permalinks for pages. Several irritating hours later, I realized that in my apache config I had set AllowOverride none on that directory for a previous configuration and that my .htaccess file was being ignored. Second I fixed that and restarted apache I was good and gallery seems to be behaving itself.
Hopefully someone else can spare themselves the trouble....
Responses (10)
Member — 12th January 2012 #
Also I've tried this on FF,Chrome and Safari on OSX, and IE9, FF and Chrome on windows.
Here is my wp-config:
<?php
/**
* The base configurations of the WordPress.
* @package WordPress
*/
/** The name of the database for WordPress */
define('DB_NAME', '');
/** MySQL database username */
define('DB_USER', '');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
/**#@+
* Authentication Unique Keys and Salts.
*/
define('AUTH_KEY', ');
define('SECURE_AUTH_KEY', '');
define('LOGGED_IN_KEY', '');
define('NONCE_KEY', '');
define('AUTH_SALT', '');
define('SECURE_AUTH_SALT', '');
define('LOGGED_IN_SALT', '');
define('NONCE_SALT', '');
/**#@-*/
/**
* WordPress Database Table prefix.
*/
$table_prefix = 'wp_';
/**
* WordPress Localized Language, defaults to English.
*/
define('WPLANG', '');
/* Enable Multisite */
//define('WP_ALLOW_MULTISITE', true);
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', 'christopherstomper.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
define( 'SUNRISE', 'on' );
/**
* For developers: WordPress debugging mode.
*/
define('WP_DEBUG', false);
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
WPMU DEV Fanatic — 12th January 2012 #
Hi zenissin and first off, welcome to WPMU DEV!
Could you let us know how the regular uploads work in the Media Library in your site? That may help to pinpoint the issue.
Thanks,
David
Member — 13th January 2012 #
Hi David,
Thanks, this should be interesting ;)
Tried it, and it does fail. File uploads fine, but I get a broken image (screenshot attached) and the following errors in the error log.
[Thu Jan 12 19:13:36 2012] [error] [client 71.63.244.60] PHP Fatal error: Call to undefined function wp_get_the_attachment_link() in /usr/local/www/wordpressdir/wp-content/themes/gallery/library/functions/loop-functions.php on line 324, referer: http://some.domain.com/wp-admin/media.php?attachment_id=14&action=edit
[Thu Jan 12 19:13:36 2012] [error] [client 71.63.244.60] File does not exist: /usr/local/www/wordpressdir/files, referer: http://some.domain.com/?attachment_id=14
I uploaded to that site's media, and tried to click on the link in media.
Guessing this is some sort of problem with the domain mapping. Why is it trying to look for files directly under the wordpress directory? It should be looking in blogs.dir/number/ right?
I'm leery of posting the exact domains, but basically I own
domain.com
*.domain.com and domain.com points to my server. I have another dns entry for test.anotherdomain.com pointing at me also.
I configured wpmu for domain.com and then a mapping for test.anotherdomain.com to point to anotherdomain.domain.com
That looks silly, but... If you want to look at it directly, send me a message and I can easily give you access. I appreciate the help Sir!
--Christopher Newman
Member — 13th January 2012 #
So I switched back to 2011 and now uploads work again. I guess the problem is definitely gallery. What's next?
WPMU DEV Fanatic — 13th January 2012 #
Okay, that's very strange. So switching to 2011 fixed the issue with the Media Library uploads as well?
Member — 13th January 2012 #
Yep, switched and could immediately upload and view in the media library. What else should I be looking at?
.htaccess?
apache config?
Do you know if there are any other requirements for gallery?
I know that php-gd seems to be required, but I'm wondering if something on the system is missing.
I'd like to use Gallery as it looks perfect for at least one site I need to put up, but I'm starting to wonder...
Theme Designer — 15th January 2012 #
I'm going to tag the developer that helped work on the uploader for gallery here to see if they can advise your server set up.
Member — 16th January 2012 #
Thanks Tammie!
Is there anything I can do to help troubleshoot? I'd like to get this worked out as soon as possible...
Member — 19th January 2012 #
Argg. Well, this was my fault after all. I was busy using another theme and everything was going fine until I attempted to use civilized permalinks for pages. Several irritating hours later, I realized that in my apache config I had set AllowOverride none on that directory for a previous configuration and that my .htaccess file was being ignored. Second I fixed that and restarted apache I was good and gallery seems to be behaving itself.
Hopefully someone else can spare themselves the trouble....
Member — 19th January 2012 #
Closed
Become a member