trbhicks
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF.js Viewer] File name does not match viewer’sAha! Found the mismatch … now to see how/where to FIX it.
<iframe width=”100%” height=”800px” src=”https://www.centuryhouseassociation.com/wp-content/plugins/pdfjs-viewer-shortcode/pdfjs/web/viewer.php?file=https://www.centuryhouseassociation.com/wp-content/uploads/2020-12-Clarion-Web.pdf&dButton=true&pButton=true&oButton=false&sButton=true&v=1.5.4#zoom=auto&pagemode=none”
Forum: Plugins
In reply to: [PDF.js Viewer] File name does not match viewer’sUgh. Further to that, the same file works in a test page at
https://www.trh.bc.ca/?page_id=656That setup is also on WordPress 5.6, so that isn’t it.
But it is hosted on a different ISP.Ugh.
Forum: Plugins
In reply to: [PDF.js Viewer] File name does not match viewer’sI too am confused by this message.
Hmm, I just updated to WP 5.6, and I think it worked before that!!!!!
I have https://www.centuryhouseassociation.com/?page_id=8446
While editing the page, the Preview works fine, and so does View Page after I Update. But viewing the page in a separate I get the error message.
I installed the plugin, and used its WP block to embed a PDF from my WP’s media library. At no time did I make any choices or overrides to where things go.
I see that “both the viewer and PDF have to be on the same domain” but how are they not?
In “Edit as HTML” I see
<div class=”wp-block-pdfjsblock-pdfjs-embed pdfjs-wrapper”>[pdfjs-viewer viewer_width=0 viewer_height=800 url=https://www.centuryhouseassociation.com/wp-content/uploads/2020-12-Clarion-Web.pdf download=true print=true fullscreen=false fullscreen_target=false fullscreen_text=”View%20Fullscreen” zoom=auto search_term=”” ]</div>The URL of the PDF is correct. How can I tell where the plugin is, and surely I don’t have to override the WP defaults on that???
Forum: Plugins
In reply to: [Regenerate Thumbnails] Too many sizesThanks. That led to a rabbit hole of interesting articles, especially the one about PNGs gettnig upsized.
I’m still working on how my specific setup (Astra theme) has processed all the size-generating rules. I think I am getting all the registered sizes up to but not beyond the size of what I upload. That makes sense and is consistent with your explanation.
Forum: Plugins
In reply to: [Enhanced Media Library] Unable to Tag Multiple ItemsAha. Earlier response explains that it works only if you go to
Settings / Media / Media Taxonomies
and set the “Assign all like hierarchical” option only.Works just fine now.
- This reply was modified 5 years, 7 months ago by trbhicks. Reason: solved
Forum: Plugins
In reply to: [WP Photo Album Plus] WordPress deleted WPPAThank you, I understand now.
Forum: Plugins
In reply to: [WP Photo Album Plus] WordPress deleted WPPAI may not have been clear. WordPress deleted the plugin. Now I can’t reinstall it because WP says the folder already exists. If I delete the folder to allow a reinstall, don’t I lose my content then?
- This reply was modified 6 years ago by trbhicks.
Forum: Fixing WordPress
In reply to: Make private post public in futureI think you’re right. Two things deterred me recently:
(1) several articles that got deep into Public/Private without ever mentioning Draft, so I forgot about it.
(2) not trusting myself to hit “Save Draft” instead of “Publish” out of habit
I suppose I can protect myself from #2 by setting a future publish date.
Thanks.
Forum: Plugins
In reply to: [WP Photo Album Plus] Server error on clickthru to display imageSeems to have worked, thanks.
Forum: Plugins
In reply to: [WP Photo Album Plus] One tag causing errors, how to debug?I don’t know!
I put a tag cloud tag into https://www.trh.bc.ca/photos/?page_id=137 but didn’t do so well with the widget.
Appearance/Widgets to Main Sidebar, First Front Page Widget Area, Second ditto
(also did same with Customize)
Set page 137 to Default Template (and also tried all other options)
No sign of widget.At this point the interface stopped looking normal. .
Panic. AHA! “The plugin wp-photo-album-plus 2/wppa.php has been deactivated due to an error: Plugin file does not exist.”
I just reactivated it and things returned to normal!But still no widgets in sidebar! Halp!
Forum: Plugins
In reply to: [WP Photo Album Plus] Upload tool rejects JPGs but FTP-Import OKFinally back at this, which is still failing. Running tests to see whether any files do NOT get this error (so far they all do; not all were from my camera, but all have been edited and saved as JPG from CS6 Photoshop)
Two things I found suggest that getimagesize has limitations that can be handled.
These might interest you:(1) One website suggested
In list($width, $height) = getimagesize($file_image);
use @ before getimagesize($file_image);
(i.e.) list($width, $height) = @getimagesize($file_image);(2) Another says getimagesize() requires spaces written as %20 and possibly some other special characters in the URL Solution: encode the filename element of a URL. Implementation:
public function create($originalPath, $newPath, $width, $height, $crop = false) { if ($this->isUrl($originalPath)) $originalPath = $this->encodeUrl($originalPath); // here it continues with the original code $imageSize = @getimagesize($originalPath);Forum: Fixing WordPress
In reply to: Twenty Ten Footer WidgesThis is marked resolved, but I can’t find an answer anywhere. I am having the same problem.