I’m working on a blog based on a WordPress multi-site network (paths), where I intend to create a subsite to host the German language version of my blog.
I already added the German language site to my network and while it seems that the site is physically there, WordPress (i.e., the dashboard) is missing all relevant CSS. Simply, put, I can see the links of the subsite (in German), but they are missing the CSS.
When “visiting” the new subsite, it’s the same. I can see a page with some very basic CSS from my theme (Enfold), but it’s missing the proper CSS I defined in “Theme Options” of the Main site. I checked and the Enfold Theme is network-enabled, as is the Child Theme.
Please understand that I’m a rookie WordPress user. I have worked with multi-site installs before, but, if I remember correctly, the creation of subsites went off without a hitch and all CSS was derived automatically from the network-enabled theme and child theme.
Where am I going wrong here?
I would appreciate any tips and pointers. Thanks for your time and help with this.
KA
]]>My main site works fine with these settings:
upload_path /home/ssnet/public_html/wp-content/uploads
upload_url_path [blank]
fileupload_url https://ssnet.org/public_html/wp-content/uploads
I believe my upload paths for the sabbathissues.org subsite looked like this (lots of changing back and forth since then):
upload_path: https://ssnet.org/wp-content/blogs.dir/12/files
upload_url_path [blank]
fileupload_url https://sabbathissues.org/files
Upon moving to a new server, a tech support person went beyond the call of duty to apply a “band-aid” solution to make most of the images on the site show up. With a little sleuthing I found that he had inserted a directory redirect in the root directory (public_html). He redirected the address https://ssnet.org/files to https://ssnet.org/sabbathissues. And the images started showing up.
It so happens that I had reproduced the upload directory in the https://ssnet.org/sabbathissues as one of my desperate attempts to restore the images.
My current settings in the Networking Admin Sites setup look like this:
upload_path /home/ssnet/public_html/sabbathissues/files/
upload_url_path https://sabbathissues.org/files/
fileupload_url https://sabbathissues.org/files/
This works only after a fashion, because this is what happens:
When I upload an image it goes to
https://ssnet.org/wp-content/blogs.dir/12/files/2024/02 and the images do not show up in the Media Library unless I choose “Edit.” And they do not show up when I attempt to insert them into blog posts. I have to use FTP to move them to https://sabbathissues.org/files/2024/02, and then the images work as expected.
I tried removing the redirect, and the images immediately disappeared from the site. The only thing I did not try was to put the images in the directory that was redirected, namely https://ssnet.org/files. (Currently there is no such directory.)
I would like to get rid of the redirect, and I would like to be able to upload files and have them work without having to move them via FTP. (https://ssnet.org/sabbathissues is perfect as a file repository, as far as I’m concerned.) Perhaps there is something wrong in the Sites setup that you can see, but it doesn’t look to me like WordPress is paying much attention to the file paths.
(My previous post on this issue was Subsite images do not load after Update to WP5.8 or subsequent updates, but I believe my current questions are sufficiently different to warrant a different post, since I’ve done enough sleuthing to understand a little of what’s going on. Besides, the other post was kind of abandoned … )
I would really appreciate some help on this. (I also have another small subsite with a similar problem. I believe if we can get the one site to work correctly, I can make the other site work too.) Thanks in advance!
I did not notice it immediately because the site was not as busy as it used to be, but discovered it later and tried to find help but could not. I would still like to restore the site and was happy to discover other users having the same issue, with garyploski(@garyploski) describing my issue precisely in all respects.
To summarize the issue:
All the images are missing on the public subsite (main site is ssnet.org and the site in question is blogs.dir/12))
When I go into the Media Library, I see only light grey blanks. However, the images show up perfectly if I choose the “Edit” function. So they are clearly accessible, even though they do not show up on the site or in the Library. I believe this first happened after the update to WP5.8, and it did not resolve with subsequent updates, as I hoped it would.
The solution for garypiloski was to add this to the .htaccess file:
# uploaded files
RewriteRule ^files/(.+)
wp-includes/ms-files.php?file=$1 [L]
I tried that, but it did not work for me – perhaps because of a different setup and the fact that I do not understand .htaccess code very well.
WP is looking for images like this:
https://sabbathissues.org/files/2023/06/st-banner-e1343171659963-150×97-1.jpg
https://sabbathissues.org/files/2013/07/Slide-Fourteen.jpg
Clicking URLs directly leads to error message:
Access to sabbathissues.org was denied
You don’t have authorization to view this page.
HTTP ERROR 403
So I thought it might be a permissions issue for me.
The images are uploaded under
https://ssnet.org/public_html/wp-content/blogs.dir/12/files
File permissions for files folder are: 755
Same for the “year” folders
The files themselves had permissions marked as 644
Changed these to 755, but that didn’t help
Please help!!
]]>
https://themarketeers.site/
https://webmasters.themarketeers.site/
]]>Warning: Undefined array key “gateways” in /bitnami/wordpress/wp-content/plugins/give/src/PaymentGateways/Gateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php on line 27
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /bitnami/wordpress/wp-content/plugins/give/src/PaymentGateways/Gateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php:30 Stack trace: #0 /bitnami/wordpress/wp-content/plugins/give/src/PaymentGateways/Gateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php(30): array_key_exists() #1 /bitnami/wordpress/wp-content/plugins/give/src/Framework/Migrations/MigrationsRunner.php(113): Give\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId->run() #2 [internal function]: Give\Framework\Migrations\MigrationsRunner->run() #3 /bitnami/wordpress/wp-content/plugins/give/src/Helpers/Hooks.php(43): call_user_func_array() #4 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(308): Give\Helpers\Hooks::Give\Helpers\{closure}() #5 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #6 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /bitnami/wordpress/wp-content/plugins/give/includes/install.php(109): do_action() #8 /bitnami/wordpress/wp-content/plugins/give/includes/install.php(49): give_run_install() #9 /bitnami/wordpress/wp-content/plugins/give/give.php(408): give_install() #10 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(308): Give->install() #11 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #12 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action() #13 /opt/bitnami/wordpress/wp-admin/plugins.php(194): do_action() #14 {main} thrown in /bitnami/wordpress/wp-content/plugins/give/src/PaymentGateways/Gateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php on line 30
I tried uninstalling all the themes and going back to default. The error still persists. I am running WordPress Multisite 6.2
Any way to help get this going would be appreciated! I like the look of this plugin!
Thank you
Sandra
]]>This may be more of an analytics question, but I would assume if you create a data stream with a specific path and connect to that specific measurement ID that it would only show data collected from that web path, but it shows everything under the property instead of just the data stream. I feel like I am missing something somewhere or GA4 just doesn’t work as I am expecting it to?
Thanks, any guidance is greatly appreciated.
]]>I have tested a sync from a regular WordPress install to regular WordPress install and this works a treat!
However, when I try to sync FROM a regular WordPress site TO a subsite on a Multisite WordPress install, nothing happens.
When I go to the sync options page on the subsite I am trying to sync TO, I see a ‘There has been a critical error on this website’ message and nothing else.
The debug log says:
—
[04-Jul-2022 03:08:45 UTC] PHP Fatal error: Uncaught Error: Call to a member function sps_display_settings() on null in /home/name-here/public_html/wp-content/plugins/sync-post-with-other-site/SyncPostWithOtherSite.php:227
Stack trace:
#0 /home/name-here/public_html/wp-includes/class-wp-hook.php(307): SyncPostWithOtherSite->sps_route('')
#1 /home/name-here/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#2 /home/name-here/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#3 /home/name-here/public_html/wp-admin/admin.php(259): do_action('toplevel_page_s...')
#4 {main}
thrown in /home/name-here/public_html/wp-content/plugins/sync-post-with-other-site/SyncPostWithOtherSite.php on line 227
—
So, should this / can this this plugin work with multisites?
]]>