How can I fix this?
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘hammy_add_page’ not found or invalid function name in /home/a4jp/agreatdream.com/public_html/wp-includes/class-wp-hook.php on line 298
]]>On enabling Hammy I get the following errors:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'hammy_add_page' not found or invalid function name in /home/user/public_html/wp/wp-includes/plugin.php on line 525
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'hammy_options_init' not found or invalid function name in /home/user/public_html/wp/wp-includes/plugin.php on line 525
Anybody know why?
]]>hello, is there a way to make it work also on a div background image?
also, should I deactivate Jetpack’s Photon? (https://jetpack.com/support/photon/)
cheers
]]>In hammy.php inside the plugins/hammy directory, the below line fails to include the options.php file:
include_once( ‘includes/options.php’ );
Change that to:
include_once( “{$hammyPath}/includes/options.php” );
You will obviously have to define $hammyPath, which you can by the following:
$hammyPath = dirname( __FILE__ );
When updated to php7 on my wordpress server, I recently see this kind of errors:
[error] 16377#0: *46 FastCGI sent in stderr: “PHP message: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘hammy_options_init’ not found or invalid function name in {$wordpressdir}/wp-includes/plugin.php on line 525” while reading response header from upstream, client: 91.126.128.242, server: url.com, request: “GET /wp-admin/admin-ajax.php?action=dashboard-widgets&widget=dashboard_primary&pagenow=dashboard HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “url.com”, referrer: “url.com/wp-admin/index.php”
]]>https://www.ads-software.com/support/topic/hammy-conflict-with-master-slides?replies=3#post-7716353
Can somebodey help me fix this error?
]]>I installed this plugin and it doesn’t work. Nothing changed.
My goal is to increase my score in Google PageSpeed Insights on mobile version. But with or without this plugin the score is the same (still huge images).
Should I configurate it in specific way or what?
]]>It looks like Hammy strips any inline styles. I had to disable it because it was causing display issues. It’s either that or, or javascript functions no longer recognize the images, I’m not sure which.
]]>Hello, just to thank the awesome plugin, that really helps a lot with responsive blogs like mine.
I want to contribute with a small fix. If the Image have special characters in the filename or URL, the plugins breaks the URL by replacing theses special chars with non-unicode characters.
To Fix this, just edit the hammy.php file as described bellow:
FIND THIS 2 LINES:
$doc = new DOMDocument();
$doc->loadHTML( $value );
REPLACE WITH THESE 3 LINES:
$doc = new DOMDocument();
$doc->encoding = 'utf-8';
$doc->loadHTML( utf8_decode( $value ) );
That’s it! Hope next version is corrected.
]]>Hi Guys,
Wonderful plugin does what is described.
Have a question for you.
Is it possible to re size individual thumbails on a page
URl: https://www.thetrendspotter.net/street-style
Thanks Many
]]>Hello ,
I have the ” yith WooCommerce Social Login” ( PRO ) plugin and install the plugin Hammy the icons social networking are hidden .
I spoke to the plugin support “yith WooCommerce Social Login” and tell me That is not fault them.
I uninstalled the plugin Hammy .
Greetings .
Fault: The plugin removes icons social networking login : https://www.ads-software.com/plugins/yith-woocommerce-social-login/
]]>Old posts(published with hammy) still works. it means, script is no problem.
But I tried publish new post.(4.2.1) Images broken.
There are no image in uploads/cache directory.
I guess WP_thumb is can’t make images.
anyway, I tried find a new adaptive image solution.
but hammy is still best for wordpress.
thanks!
]]>Hello, first of all this plugin is great, it almost doubled my mobile page load speed but it breaks the jetpack carousel and the images do not populate.
I tried adding the carousel classes to the exclude classes in hammy but those aren’t actually the img class and that is what hammy needs. I am trying to find a way to add a custom class “nohammy” to the images within the jp-carousel class but everything I try either adds a custom class to all images on my site or none.
I might be over thinking this but if anyone has any suggestions it would be most appreciated. Thanks
]]>Hiya,
Please could you fix the W3C Validation error that is created by using this plugin.
Thanks,
James
Hi,
after installing the plugin, images inside posts lose their original alignment. It looks like all images are being placed left. You can see an example on this post:
https://www.ra-plutte.de/2015/03/vertragsstrafe-wegen-fehlender-loeschung-von-google-cache/
Additionally on my ‘team’ page, where i use widgets on pages, the layout breaks completely.
https://www.ra-plutte.de/team/
Can you help with these issues? Is it just a css issue or something else?
Best Nick
]]>Hey, awesome app so thank you heaps!
It works well but was serving the smallest image break to my pc, so I have removed the smaller breaks and left 960, now the app is resizing a 2000px image to a 960, so thats great, clicking on the image will ensure lightbox will still serve the full size 2000px image!
But I suspect I am not getting the full benefit of this app by not having smaller break points for tablet and phone.
How can I ensure that Hammy serves the larger break to PC, medium to tablet and smaller to phone?
Ant feedback much appreciated
Cheers!
https://www.lawlor.me
Does Hammy work with linking to external images? Most of the images I use on my website are from Instagram so I link directly to the image. Since the image is not hosted locally on my server, will Hammy still work and resize the images properly?
]]>Hello,
I’ve installed the Hammy plugin.
But it seems not working on images.
Here’s the website : https://goo.gl/6TQaJQ
Here’s the hammy plugin configuration : https://i.imgur.com/1tIvX1d.png
Can you tell me what i’ve done wrong ?
Thanks for your support,
David.
Hi,
I use comment with images so the users can add comments to images. How do I get Hammy to also serve up these comment-images both resized and lazy loaded?
Thanks
]]>Hello. I’m using a paid plugin that embeds Facebook content into my posts. Hammy does not play nice with this plugin.
These posts do not have classes attached to the images themselves for me to exclude in Hammy’s settings, but they are in divs with specific classes. Is there a way to target images within a class for Hammy to ignore instead of just images of a certain class?
I understand from previous posts that you are not very interested in supporting for paid plugin conflicts but this was not functionality I could find open source. And I assume the flexibility would be applicable to a wider range of cases than just me and this specific plugin.
Help appreciated.
]]>I love the plugin, but one thing I have noticed is that I now have lots of images of different sizes from a single image. It actually is at 40Gb in just three months on my active blog thepuffington.com.
is there anyway when Hammy creates images that it can delete the original ones? Again love the plugin, hate the storage required for all the extra images!
]]>hammy doesn’t display attachment in non-english file name.
I guess it is encode issue. I notify 4.0. and I try 4.1. but same trouble.
How to solve it?
One of my reasons to use Hammy was to optimize my Google Page Speed score.
Hammy seems to be working on my posts and pages, but Google doesn’t recognize the adaptive images and demands that I resize my images:
Compressing and resizing https://www.flocutus.de/…cache//18_laternenmoenche/2166410294.jpg could save 191.9KiB (96% reduction).
Check this result with a picture heavy post.
]]>imgs on the index page get processed by hammy, but the html output doesn’t seem to be complete and the img code isn’t replaced and the html ends up malformed. See here on my blog. Hammy is active.
<img width="900" height="300" src="https://d6697bcb9a6c649fa2c346b14f39b29a6a9d1d4c.googledrive.com/host/0B66xUAAppodCbDhLcGVpcEFyam8/_uploads_palmenkolanta.jpg" class="attachment-thumbnail-large wp-post-image" alt="palmenkolanta" />
turns into
<img width="900" height="300" src="https://d6697bcb9a6c649fa2c346b14f39b29a6a9d1d4c.googledrive.com/host/0B66xUAAppodCbDhLcGVpcEFyam8/_uploads_palmenkolanta.jpg" class="attachment-thumbnail-large wp-post-image" alt="palmenkolanta" /></a></div><div class="the-content"><p><a href="https://www.flocutus.de/reisefotos-kompaktkamera-canon-g7x-test/" onclick="_gaq.push(['_trackEvent', 'outbound-article-int', 'https://www.flocutus.de/reisefotos-kompaktkamera-canon-g7x-test/', '']);" ><figure class="hammy-responsive " title="" data-media=""><noscript><img src="" alt="" title="" width="" height=""></noscript></figure></a>
Couldn’t see any relevant php errors. Any ideas, what’s wrong? It works like a charm on pages and posts.
]]>Everything works fine, except that, the alt
propery of image is removed from it. This is what I have in my post:
<img src="my-img.jpg" alt="some alternative text">
and This is what I get in page:
<figure ....>
<img src="my-img.jpg" alt>
</figure>
What should I do to solve this problem?
]]>Hello
I have problem with cyrillic Title of pictures using plugin.
It looks like “%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80” when cursor on the picture ares.
Is it possible to fix?
Thank you for your answer.
Valery.
I have an issue on this page of my website: https://coastalorthopedics.com/services/
The code for one of the buttons on the frontend looks like this:
<p>
</p>
<figure class=”hammy-responsive ” title=”” data-media=”https://coastalorthopedics.com/wp-content/uploads/cache//service-page-button1/255319305.png”><img src=”https://coastalorthopedics.com/wp-content/uploads/cache//service-page-button1/255319305.png” alt=””><noscript><img src=”https://coastalorthopedics.com/wp-content/uploads/service-page-button1.gif” alt=”service-page-button” title=”” width=”342″ height=”119″></noscript></figure>
Any idea why this would be separating the link like this?
]]>Google PageSpeed suggested me to compress my images while I was using Smush.it. It also suggested to reduce image size for mobile users.
Prizm Image is a great plugin to resize and pass PageSpeed tests with regards to compression. However, for mobile it’s
insufficient as WordPress keeps serving large images.
That’s how I found out about Hammy. Hammy serves smaller images to mobile devices.
However, Hammy’s compression seems a bit too lossy. I can see artifacts. And it doesn’t pass Google PageSpeed for compression.
So, it would be great if Hammy would work with Prizm as a compressor.
Or Hammy could map to WordPress image sizes like Simple Responsive Images seems to do. Adding custom image sizes in WordPress is easy and Prizm takes these into account. You can even create the new image size only using AJAX Thumbnail Rebuild.
]]>i have my breakpoints set to 368, 460 and 750(750 being the actual size of the content area) and the content container set to .entry-content. Excluding the featured image up top, the plugin is serving the smallest version across all images within the post.
live example on my blog
notice the 3rd image down beneath the “hart island today” header …. the original is 600+ pixels wide and aligned center. Hammy is serving the smallest version of the image on a full sized monitor and aligning it to the left.
here’s another example
about 5 or 6 paragraphs down there’s an image of a map which should display full width of the container but instead is reducing to 368 and aligning left.
I suspect I have the wrong container class set but have used inspector to try to find the correct value to no avail. Any insight would be appreciated.
But all that aside, the plugin is def working and doing what it promised. On posts/pages with galleries this thing has helped me gain nearly 25 points with google pagespeed insights on desktop and about 10 points on mobile due to the way wordpress gallery loads unscaled images upon initial page load. It(wp gallery) says (scaled from 750×420 to 368×229) but that’s just a visual scale to make the images fit the columns, while in reality the full sized versions are loaded in the background upon initial page load – which pagespeed insights doesn’t like at all. It see’s 368 images with the file sizes of 750’s. Bam, instant gig costing tons of precious speed points.
]]>alt="Breakpoints setzen, damit das Plugin wei?? welche Bildgr????en gebraucht werden"
I’m writing a review about your plugin and found out it can’t speak our beautiful language ??
alt-tag is broken
wp-caption works fine
is there a way to resolve this – thanks
]]>