gabor123
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Empty tabbed content when viewing plugin details from adminSame here for a while.
WP 5.2.2
php 7.2Forum: Plugins
In reply to: [WP Cerber Security, Anti-spam & Malware Scan] Adwords Blockingit says: ” Nobody can log in or register from these IPs ”
So is prety missleading :PPPPForum: Plugins
In reply to: [WP Cerber Security, Anti-spam & Malware Scan] Adwords BlockingI contected with google support and when they tried to reach my site with test gclid parameter then turned out WP cerber locks out them
Here is an activity log:
104.132.31.92
corpnat-104-132-31-92.corp.google.com 2019-03-13, 12:35
Malicious request denied IP blacklistedAnd other users blocked as well
Forum: Plugins
In reply to: [Enhanced Media Library] Request-URI Too LargeHi Nadia,
Thank you for your reply.
I have about 150 files and about 10 categoires.
When I try to filter (even with pattern or just choose a media category), all my filenames goes to the request url.I have wordpress 5.02 and php 7.2
And the error message:
Request-URI Too Long
The requested URL’s length exceeds the capacity limit for this server.
Apache/2.4.25 (Debian)
Thanks for help
Best,
GaborForum: Plugins
In reply to: [Post Gallery] Parse error after last updateAnd now it is working.
Thank you! ??Forum: Plugins
In reply to: [Post Gallery] Parse error after last updateAm I the only one around here who still on php 5.4? ??
Forum: Plugins
In reply to: [Post Gallery] Parse error after last updatesame error here:
/wp-content/plugins/simple-post-gallery/vendor/10quality/wpmvc-mvc/src/Traits/RelationshipTrait.php on line 183Forum: Plugins
In reply to: [Post Gallery] Parse error after last updateThanks for quick fix, but:
Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /wp-content/plugins/simple-post-gallery/app/Models/Post.php on line 49Forum: Plugins
In reply to: [Post Gallery] Parse error after last updatephp 5.4.45
Forum: Reviews
In reply to: [Post Gallery] Can’t add Custom URLThanks for your reply, but I think what you suggest is upload media from url instead of local machine.
What I wanted when I posted this, that add an url to a pic in the post’s gallery, so when the user clicks on it I can link the image to an external url for example. I have youtube logo in the media library and want to add the same logo to different posts, but with different extarnal urls.I found an other solution to achive this, but if the plugin had this feature, it would have made my life easier.
Forum: Plugins
In reply to: [Post Gallery] Media files copied with id prefixNo, I can’t. This images don’t appear in media library, I can only delete them by hand on the filesystem which is quite difficult, whilst they shuffled with other items which are in the media library.
done ??
one more thing I mentioned earlier:
the replace_special_chars function.
I just patched it as well, because I heated the ? -> oe, ü -> ue convertion.
(we have other chars like ??íóú and the function ignores these, so the whole thing is inconsistent, and anyway, in Hungary we don’t use this type of conversions, since – I don’t know – 1990)
Is it only for German characters?
An option, to disable this, would be good ??
While I’m using this php version, I have to patch the plugin anyway, I just wanted to inform you about this ??
ThanksI just leave it here, maybe somebody, can use it.
This fix the first character croping with bad php pathinfo()diff -ruN ./core.php ../../media-file-renamer/core.php --- ./core.php 2017-11-08 14:02:17.000000000 +0100 +++ ../../media-file-renamer/core.php 2017-11-08 20:29:49.288881000 +0100 @@ -404,6 +404,9 @@ $pp = pathinfo( $file['name'] ); + $pp['basename']=end(explode('/',$file['name'])); + $pp['filename']=preg_replace('/\.[^.]*$/','',$pp['basename']); + // If everything's fine, renames in based on the Title in the EXIF $method = apply_filters( 'mfrh_method', 'media_title' ); if ( $method == 'media_title' ) { @@ -430,7 +433,7 @@ add_filter( 'wp_read_image_metadata', array( $this, 'wp_read_image_metadata' ), 10, 2 ); // Modify the filename - $pp = pathinfo( $file['name'] ); + //$pp = pathinfo( $file['name'] ); $file['name'] = $this->new_filename( null, $pp['basename'] ); return $file; } @@ -908,6 +911,8 @@ else { // It's an upload, let's check if the extension is provided in the text $pp = pathinfo( $text ); + $pp['basename']=end(explode('/',$text)); + $pp['filename']=preg_replace('/\.[^.]*$/','',$pp['basename']); $new_ext = empty( $pp['extension'] ) ? "" : $pp['extension']; $text = $pp['filename']; }
I was wrong.
The pathinfo() is bad.
I found an old thread about this:
https://stackoverflow.com/questions/32115609/basename-fail-when-file-name-start-by-an-accent
It’s weird, becouse my php is newer, but it seems, the bug is still there.I just found the line.
The problem is that the wp_read_image_metadata() give back the wrong name.
I suspected the gimp first, but now just picked a random file from the net renamed it and the first char was cropped again.
So the problem is with wp_read_image_metadata()
I think it use some image lib so the problem is with my php/server environment (becouse the problem doesn’t affect you)
Thanks for helping, I will find some workaround to solve this.