mcyzyk
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF.js Viewer] ?? PDFjs 2.2 Not Working?I have a weird situation related to this:
I have a Prod and a Dev server.
In both, I’ve added the “
AddType application/javascript .mjs
” line to .htaccess.This solved my problem on Prod, but did not solve my problem on Dev. On Dev I get a “Forbidden. You don’t have permission to access this resource” error.
File system permissions on Prod and Dev are identical.
AND, on Dev, I CAN get directly to a PDF file via its URL.
So for some reason, this plugin cannot get to it and is throwing an error. Don’t know why!
Forum: Developing with WordPress
In reply to: Adding sort order to main queryThanks!
Is there any way to make this happen directly in my code above rather than in functions.php?
Much appreciated,
Mark
Forum: Networking WordPress
In reply to: WP Multisite: Migrating server, IP, internal domain, DNSJust reporting back….
This:
“I think for Prudence’ Sake I’m just going to do everything at once (rather than try a DNS Switcheroo at the very end): Take snapshot on Old. change DNS on New, build fresh single WP instance, promote to Multisite, restore snapshot into it.”
That’s what I did last evening and this morning. All up and running on new RHEL9/PHP8 VM with new IP but same old DNS! Migration complete.
Forum: Networking WordPress
In reply to: WP Multisite: Migrating server, IP, internal domain, DNSThanks!
(But it’s a bit like having a tax question and someone throwing the United States Tax Code at you….)
I waded through. This one was useful:
https://www.ads-software.com/documentation/article/moving-wordpress/#moving-wordpress-multisite
Looks like there ARE references to the Domain in the DB, though apparently their locations are not predictable, leading to the use of this:
https://github.com/interconnectit/Search-Replace-DB
I think for Prudence’ Sake I’m just going to do everything at once (rather than try a DNS Switcheroo at the very end): Take snapshot on Old. change DNS on New, build fresh single WP instance, promote to Multisite, restore snapshot into it.
Forum: Plugins
In reply to: [Taxonomy List] URL: Possible to override?Solved with another plugin, Redirection:
Much simpler solution!
https://www.ads-software.com/plugins/redirection/
/genre/(.*)/$
to:
/search?_genres=$1
Forum: Plugins
In reply to: [Zotpress] Zotpress in loopThanks, that worked! I broke each of my multiple shortcodes out into individual Item Types, and now the whole bibliography renders on a since screen.
Forum: Plugins
In reply to: [Media Library Folders] Relative URL on WP Multisite SiteThanks! This is SUPER helpful.
I do use All In One Migration, so am hoping it works its magic. (Otherwise, I’ve used the Velvet Blues plugin to change URLs strings in bulk…)
MUCH appreciated,
Mark
Forum: Plugins
In reply to: [Zotpress] Zotpress in loopDarn! Would be nice if this could be fixed.
Not sure what to do. If I had to I could split this up into separate pages per Item Type. Not ideal, though.
Thinking…
Forum: Plugins
In reply to: [Zotpress] Zotpress in loopThanks!
Is there a way to have separate bibliographic sections on a single page (Books, Articles, Dissertations) without using separate shortcodes?
Forum: Plugins
In reply to: [Zotpress] Zotpress in loopAnyone run into this weird looping phenomenon?
Forum: Developing with WordPress
In reply to: add_rewrite_rule() not workingMuch simpler solution!
https://www.ads-software.com/plugins/redirection/
/genre/(.*)/$
to:
/search?_genres=$1
Forum: Developing with WordPress
In reply to: add_rewrite_rule() not workingThanks!
I probably should not have mentioned “taxonomy”, even though what I am trying to do is, when someone hits my /genre/advert page it does not display the stock tax page, but rather automatically transfers to my main Search screen with “_genres=advert” active.
Here is what I have so far:
<?php add_action( 'init', function() { add_rewrite_rule('^genre/([^/]*)/?', '/search?_genres=$matches[1]', 'top'); add_rewrite_rule('^topic/([^/]*)/?', '/search?_topics=$matches[1]', 'top'); } ); ?>
(Hit Permalinks page to make this active…)
But I don’t think the RegEx is matching.
Just tying to match against this:
https://myserver/mysite/genre/advert/
and rewrite to this:
https://myserver/mysite/search?_genres=advert
Thinking. Searching…
Mark
Forum: Networking WordPress
In reply to: WP Multisite: Max File Upload not workingThanks. That all checked out. And still no 50 MB limit.
I then found out we’re running PHP-FPM there, so simply restarting the Apache process was not enough for this change to take effect. Restarted PHP-FPM and all is well!
Forum: Networking WordPress
In reply to: WP Multisite: Max File Upload not workingDouble checked php.ini. Settings correct.
I have since deleted the directives from both .htaccess and wp-config.php.
Double-checked Multisite Network Settings: Correct.
But still limited to 2MB.
Mark
Forum: Plugins
In reply to: [PDF Image Generator] CPU spike: 100%Bump!
Anyone else out there experiencing 100% CPU spike (and freeze of server) with this plugin? I’d love to know to how mitigate.