Support » Plugin: WP Photo Album Plus » Wppa 7: Path Errors with WP Multisite on Localhost

  • Resolved faberia

    (@faberia)


    Dear Sirs

    Thanks a lot for providing WPPA with its great functionality.

    Today I began to test the Plugin on my Windows Localhost for WordPress Multisite.

    I get the following Error:

    Warning:The uploads directory does not exist or is not writable by the server. Please make sure that D:\www\wp_wppa_mu/wp-content/uploads/sites/1/wppa is writeable by the server.
    or
    Could not create the wppa directory. Ask your administrator to give you more rights, or create D:\www\wp_wppa_mu/wp-content/uploads/sites/2/wppa manually using an FTP program.

    See the different path separators!

    Ø Nothing doesn’t work properly (uploads, imports, load settings …)

    Unfortunately it doesn’t help creating the folders manually.

    not affected:
    • no problem on webhost with mutlisite wppa individual
    • No problem with wp single and wppa on localhost

    My Environment:
    OS: Win7 Pro 64

    Localhost: Wamp serv 3.1.4 64bit D:\www (document path)

    WordPress Multisite: Wp 5.0.1 (Fresh setup) D:\www\wp_wppa_mu

    wppa 7.0.05.016, multisite individual
    (Followed https://wppa.nl/de/changelog/installation-notes/)
    define( ‘WPPA_MULTISITE_INDIVIDUAL’, true ); // Multisite WP 3.5 or later with every site its own albums and photos

    It seems that the path separators influence.

    Thanks for your support

    faberia

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Yes, it looks like a slash ( / vs \ ) issue.

    As i do not have the installation to test this, i would like you to do the following:

    Look at the Photo Albums -> Settings admin page, Table XII and compare both situations (the working and the not working).

    You should find something like this:

    ABSPATH 	WP absolute path. 	/mnt/.../htdocs/opajaap/betatest/ 	
    WPPA_ABSPATH 	ABSPATH windows proof 	/mnt/.../htdocs/opajaap/betatest/ 	
    WPPA_PATH 	Path to plugins directory. 	/mnt/.../htdocs/opajaap/betatest/wp-content/plugins/wp-photo-album-plus 	
    WPPA_NAME 	Plugins directory name. 	wp-photo-album-plus 	
    WPPA_URL 	Plugins directory url. 	https://betatest.opajaap.nl/wp-content/plugins/wp-photo-album-plus 	
    WPPA_UPLOAD 	The relative upload directory. 	wp-content/uploads 	
    WPPA_UPLOAD_PATH 	The upload directory path. 	/mnt/.../htdocs/opajaap/betatest/wp-content/uploads/wppa 	
    WPPA_UPLOAD_URL 	The upload directory url. 	https://betatest.opajaap.nl/wp-content/uploads/wppa 	
    WPPA_DEPOT 	The relative depot directory. 	wp-content/wppa-depot/opajaap 	
    WPPA_DEPOT_PATH 	The depot directory path. 	/mnt/.../htdocs/opajaap/betatest/wp-content/wppa-depot/opajaap 	
    WPPA_DEPOT_URL 	The depot directory url. 	https://betatest.opajaap.nl/wp-content/wppa-depot/opajaap 	
    WPPA_CONTENT_PATH 	The path to wp-content. 	/mnt/.../htdocs/opajaap/betatest/wp-content 	
    WPPA_CONTENT_URL 	WP Content url. 	https://betatest.opajaap.nl/wp-content 	
    wp_upload_dir() : ['basedir'] 	WP Base upload dir. 	/mnt/.../htdocs/opajaap/betatest/wp-content/uploads

    This way you should be able to find out what went wrong. Once this is clear, i can provide a fix.

    Dear Jacob

    Thanks for your reply.

    For first, today I tested and found this issue also on Win 10, not only on win 7.

    The differences (multi vs single) with the slashes are found at
    • WPPA_UPLOAD_PATH – The upload directory path.
    • WPPA_DEPOT_PATH – The depot directory path.
    An see also the slashes on both of wp_upload_dir()

    Please find in the follow first the pathes of the erroreous multisite individual and then the single site

    Multisite:

    ABSPATH	WP absolute path.	D:\www\wp_wppa_mu/
    WPPA_ABSPATH	ABSPATH windows proof	D:/www/wp_wppa_mu/
    WPPA_PATH	Path to plugins directory.	D:\www\wp_wppa_mu\wp-content\plugins\wp-photo-album-plus
    WPPA_NAME	Plugins directory name.	wp-photo-album-plus
    WPPA_URL	Plugins directory url.	http://localhost/wp_wppa_mu/wp-content/plugins/wp-photo-album-plus
    WPPA_UPLOAD	The relative upload directory.	wp-content/uploads/sites/1
    WPPA_UPLOAD_PATH	The upload directory path.	D:\www\wp_wppa_mu/wp-content/uploads/sites/1/wppa
    WPPA_UPLOAD_URL	The upload directory url.	http://localhost/wp_wppa_mu/wp-content/uploads/sites/1/wppa
    WPPA_DEPOT	The relative depot directory.	wp-content/uploads/sites/1/wppa-depot
    WPPA_DEPOT_PATH	The depot directory path.	D:\www\wp_wppa_mu/wp-content/uploads/sites/1/wppa-depot
    WPPA_DEPOT_URL	The depot directory url.	http://localhost/wp_wppa_mu/wp-content/uploads/sites/1/wppa-depot
    WPPA_CONTENT_PATH	The path to wp-content.	D:/www/wp_wppa_mu/wp-content
    WPPA_CONTENT_URL	WP Content url.	http://localhost/wp_wppa_mu/wp-content
    wp_upload_dir() : ['basedir']	WP Base upload dir.	D:\www\wp_wppa_mu/wp-content/uploads
    $_SERVER['HTTP_HOST']		localhost

    Single site:

    ABSPATH	WP absolute path.	D:\www\wp_wppa/
    WPPA_ABSPATH	ABSPATH windows proof	D:/www/wp_wppa/
    WPPA_PATH	Path to plugins directory.	D:\www\wp_wppa\wp-content\plugins\wp-photo-album-plus
    WPPA_NAME	Plugins directory name.	wp-photo-album-plus
    WPPA_URL	Plugins directory url.	http://localhost/wp_wppa/wp-content/plugins/wp-photo-album-plus
    WPPA_UPLOAD	The relative upload directory.	wp-content/uploads
    WPPA_UPLOAD_PATH	The upload directory path.	D:/www/wp_wppa/wp-content/uploads/wppa
    WPPA_UPLOAD_URL	The upload directory url.	http://localhost/wp_wppa/wp-content/uploads/wppa
    WPPA_DEPOT	The relative depot directory.	wp-content/wppa-depot/admin
    WPPA_DEPOT_PATH	The depot directory path.	D:/www/wp_wppa/wp-content/wppa-depot/admin
    WPPA_DEPOT_URL	The depot directory url.	http://localhost/wp_wppa/wp-content/wppa-depot/admin
    WPPA_CONTENT_PATH	The path to wp-content.	D:/www/wp_wppa/wp-content
    WPPA_CONTENT_URL	WP Content url.	http://localhost/wp_wppa/wp-content
    wp_upload_dir() : ['basedir']	WP Base upload dir.	D:\www\wp_wppa/wp-content/uploads
    $_SERVER['HTTP_HOST']		localhost

    Hope this parameters help to solve the problem. Thanks.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Pls do the following:

    – de-activate and delete the plugin. No data will be lost.
    – Download version 7.0.06.003 here: https://downloads.wordpress.org/plugin/wp-photo-album-plus.7.0.06.003.zip
    – Add new plugin by uploading zipfile you just downloaded and activate it.

    This should fix it. If not, or if you find further issues: pls tell me

    Dear Jacob

    Thanks a lot for the fix.

    I successfully tested it on both win 7 and 10.

    Merry Christmas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Wppa 7: Path Errors with WP Multisite on Localhost’ is closed to new replies.