Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media upload failing except on main site #165

Open
Harvey1099 opened this issue Feb 27, 2021 · 5 comments
Open

Media upload failing except on main site #165

Harvey1099 opened this issue Feb 27, 2021 · 5 comments

Comments

@Harvey1099
Copy link

I have been using the wp-multi-network plugin for years and have been very happy with it. However recently, on all of our networks except the main (first one), the media library upload fails to finish properly. Typically we get a PHP timeout (300 seconds) and a generic error saying to use a smaller file. The file winds up in the correct directory, but not in the media library. Only the file uploaded, no thumbnails or resized versions. I even setup a from scratch wordpress install with just 2 networks. The second network fails the exact same way. The media library remains empty. Any chance this could get fixed?

@lucastakahashi
Copy link

lucastakahashi commented Apr 7, 2021

Unhappy is the same for me :(

I found the url about sunrise.php creation in https://paulund.co.uk/wordpress-multisite-with-nested-folder-paths but, the article it is very old and little didactic. I follow all steps, though resulted in a php error in sunrise code.

Someone can help us? I structure my multi network this way:

  • domain - Main site
  • EN.domain - 2nd site
  • EN.domain/games - 3rd site
  • EN.domain/music - 4th site
  • ES.domain - 5th site
  • ES.domain/games - 6th site
    (...)
    Any file sent from the secondary sites, I see in ftp, but it does not go up to the database or to the native media manager of wp.

I use the last wp core version and php 7.3.

@Harvey1099
Copy link
Author

Well, I think you are in a world of hurt. You are describing the same problem I had. I could not fix the problem in my installation; so, I had to migrate all of my sites to another MultiSite wordpress installation without the wp-multi-network plugin installed. Very slow and painful process for 24 sites.

For what it is worth, here is what I did. I used WP Migrate DB Pro with the Multisite Tools addon (doesn't work otherwise). Another problem is you cannot migrate (with this tool) from multisite to multisite. It lets you migrate to a stand alone site and it lets you import a standalone site. So, I stood up a standalone site on a testing URL and ported each site to the stand alone site and then ported to the new multisite. Each site was down during the 2nd porting step, but I didn't see any way around that. Keep in mind that you have to create the site on the new multisite installation and move the URL between the two websites (old multisite and new multisite).

Additionally, I ran into a couple of problems where the migration process didn't quite work right. Some of the media file links were sometimes pointing to the wrong directory or the wrong base URL. So, I would have to run the Find and Replace tool within WP Migrate DB Pro to correct.

It was one site at a time and I had to check the pages for missing media and the headers and footers for missing media as well.
Good luck

@JJJ
Copy link
Collaborator

JJJ commented Aug 24, 2021

Can you confirm that your network Upload settings are what you need them to be?

Mine are:
jjj-on-2021-08-23-at-21-51-56@2x

Can you also confirm that your web server software (Apache, nginx, etc...) is configured to accept uploads from the domains you've created? How you do this will vary wildly, but I'm happy to help here if I'm able.

(We could also move this to a Discussion if you'd like. I know a few folks are seeing this, but whether or not it's a bug is still inconclusive. 💜)

@JJJ
Copy link
Collaborator

JJJ commented Aug 25, 2021

Maybe related to #153.

@detemporadaclub
Copy link

Hello,
I’m trying to create a wordpress multisite – multi-network (sub folders) with the WP Multi-Network plugin in siteground hosting, and I follow the instructions to achieve the folder paths (with this tutorial)

like so:

main site (main domain) >> country1 sub network (with domain) >> city1 sub network >> subsites x.

when I modify the htaccess in the line

RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.) $2 [L]
to
Rewrite rule ^(.+)?/(wp-.
) /$2 [L]
the media and wordpress customization options of the >> city 1 subnet and the >> x subsites are not shown.

Can you help me? please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants