Michael Nelson
Forum Replies Created
-
Forum: Plugins
In reply to: [Resize Image Before Upload] create_function() is deprecatedHi thanks for the reply and offer to help. The error is coming from a site of a user who also uses my plugin (Print My Blog). But upon further investigation, I see this warning is coming from a different plugin with the same name: https://github.com/WPsites/Resize-images-before-upload/blob/master/resize-images-before-upload.php#L304 (but isn’t on WP.org). It’s also super out-of-date which explains some things.
So we’re good. Thanks!
??????!
Thanks Philip! Thanks so much for the glowing review, and for sharing how your organization uses the plugin for making its newsletter etc. I bet others will find it helpful.
Thanks for six stars!!
Hi Frank, thanks for providing the debug info. I’m pretty sure the error is coming up because your project’s design has the theme disabled, but your content or other plugins require the theme to be enabled or they’ll throw this error.
Here is an article describing how to fix the issue: https://printmy.blog/user-guide/uncategorized/how-to-apply-your-websites-theme-to-print-my-blog-generated-files/
Please let me know how it goes or if it’s not clear what to do.
Hi @ecshao, sorry your issue got burried in my email inbox and I didn’t notice it until now.
What security plugin are you using? I created a FAQ listing a few that are known to have a setting to disable (or partially disable) the WP REST API. Maybe that lists a plugin you’re using?
Also, can you share the URL of your website? If PMB is still active on your site, I might be able to gather some more clues about what’s going wrong.
Hmmm @kepptenkuck that sounds good but a bit labour-intensive.
Print My Blog (PMB) doesn’t currently support such a custom query in Quick Print, which I think is what you’d want.
You’ll probably need to hire a developer (or learn it yourself) to write some custom code for you (probably put it in a custom plugin), and create pull requests on PMB’s github repository for any adjustments that might be needed in the plugin.
Here’s an overview of what will need to happen:
- add a link somewhere on your site that users will click to create this custom print page based on the custom query
- it will direct users to the regular PMB Quick Print print page, except also add a query argument to the URL to indicate to use the custom query
- when PMB sends the Ajax requests to the REST API, it will need to include an extra parameter indicating to use the custom query
- on the WP REST API endpoint, watch for that extra parameter, and if present, customize the query to return whatever it is you’re wanting
jobs.wordpress.net might be a good place to look for a developer to do this sort of thing.
I hope that helps. I can’t write this plugin for you, but I can try to answer any developer questions you or your developer may have.
Does that make sense?
Marking as resolved due to inactivity. Feel free to reopen though.
Hi @kepptenkuck, how if you’re using categories or taxonomies, you can filter by them in both PMB’s Quick Print and Pro Print.
Otherwise, you can use Pro Print and manually search for the posts and add them individually.
See this user manual entry and it’s videos for details: https://printmy.blog/user-guide/getting-started/6-choose-project-content/
Does that help?
Thanks for the review and sharing your use-case @jjfarina !
Ok if you’ve removed Print My Blog (PMB) from your site, there’s no way it’s adding those links now.
Maybe Google indexed one of those pages, then when it goes to re-index the site, it might use one of those previously-indexed pages as a starting point. If so, the site’s “older posts” and “newer posts” at the bottom of the page would link to more (because it automatically adds everything after the “?” in the URL onto those links).
One possible way to break that cycle would be to change your site’s homepage to be an actual page instead of just the blog posts page (I think that’s in WP admin > settings > general). That would remove the “older posts” and “newer posts” buttons from the homepage, and instead put them on the new blog posts page (at whatever other URL you put it).
That workaround is probably not what you want, but it should work eventually. I’m not an expert on Google Analytics. You might want to talk to the developers of whichever plugin you’re using for Google Analytics integration to see how you can get these no-longer-existing URLs removed from your Google Analytics dashboard, or maybe hire a WP+ Google Analytics professional from jobs.wordpress.net to help.
I’m sorry you’re having trouble removing Print My Blog’s old URLs from Google Analytics though. Eventually I’ll be changing how PMB works to prevent this for future users.
I’m closing this issue for now seeing how I don’t see any way PMB is causing this issue now that it’s deactivated, but feel free to reopen or add more comments if you like.
It’s ok you didn’t see the “Delete All Data” button, because I really don’t think it would have made a difference in this case. PMB itself, once inactive, does not continue to add any hyperlinks to your content, so there’s nothing in the plugin itself that I can do to get Google to listing those PMB print pages. But I will share what I’ve found.
Thanks for providing the URLs which gives me a clue. (If you want to upload photos, you need to upload them somewhere else, like Microsoft OneDrive or Google Drive, then share the link to them here).
It seems that Google indexed one of PMB’s print pages (which it shouldn’t as the links have “rel=’nofollow'”)like https://expat-rus.de/?print-my-blog=1&post-type=post&statuses%25252525252525255B%25252525252525255D&rendering_wait=0&columns=1&font_size=normal&image_size=small&links=include&show_site_title=1&show_site_tagline=1&show_site_url=1&show_title=1&show_url=1&show_categories=1&show_featured_image=1&show_content=1&format=pdf&pmb-post=335. And because PMB is now inactive, the print page is just treated like your homepage (everything after the
?
is mostly ignored), and WordPress adds everything after the?
onto the pagination links at the bottom of the page.So you need to verify there are no more hyperlinks on your site that link to a PMB print page (page with
...?print-m-blog=1...
) then get Google to re-index your site.Does that make sense?
Hi @tromari, Print My Blog doesn’t add any links that need to be cleared in the database. And actually, when the plugin is active, there’s a button to “Delete All Data” (on the plugins page under “Print My Blog”) which removes all the data PMB saves to the database. Here’s a screenshot.
It sounds like Google is taking a while to update its list of pages on your site. Can you share the URL of your site and some screenshots from what you’re seeing from Google?
Hi Michele, I can’t delete your comments (I’m not a www.remarpro.com forum moderator) and it’s against the forum rules that I offer to work for hire.
I suggest you post a “job” on jobs.wordpress.net to find the best rate for getting hands-on support. Please let me know when you’ve done that.
Ah thanks, ok good to hear you pinpointed the difference.
I hope it’s ok, I’m marking this as resolved. Feel free to reopen or start a new thread.
Good luck!
Yeah @silo I managed to get this to work locally.
Here’s some screenshots:
ACF field: 2023-January-06 14-33-55-182.png
A Post using that field: 2023-January-06 14-34-17-828.png
Custom code: 2023-January-06 14-34-57-574.png
Print Page of Digital PDF: 2023-January-06 14-35-22-056.png
Were you doing something differently? Need more info?
Hi @silo, no worries.
Yes it would be more proper to create a custom design like documented here: https://printmy.blog/user-guide/dev-docs/creating-custom-designs/
But it sounds like I should make that process simpler.
Regarding using ACF in the modified article.php: yes I would have thought they would work too.
If you turn WP_DEBUG on, do you get an error message? Or is it just blank?