hothbricks
Forum Replies Created
-
Just tested and it works !
I temporarily solved the issue by going into database table pspro_snippets and editing every snippet to remove the backslashes. If you don’t modify and save again the snippet, it stays correct.
If you modify or save again the snippet, it adds the backslashes again.
sorry, I meant :
<div class="\"test\"">TEST</div>Our setup:
Plugin version: 4.1.1
WordPress Version: 7.0
PHP version: 8.4.21 (Supports 64bit values).
Di you try with PHP 8.4 ?also did you check the code of the inserted snippet in your video ? was it <div class=”test”>TEST</div> or <div class=\”test\”>TEST</div> ?
in our situation, yes, and then the code becomes :
<div class=class="\"test\"">TEST</div>- This reply was modified 1 week, 6 days ago by hothbricks.
here is a simple recording of creating a snippet which includes “” and using it in a post :
Final version 4.1.1 has the same issue actually
Looks like the issue is somewhere here :
if ( $snippet['snippet_php'] == 1 ) {
$snippet_content = self::phpEval( $snippet_content );
if ( ! empty( $snippet['snippet_wptexturize'] ) && ( $snippet['snippet_wptexturize'] == true ) ) {
$snippet_content = html_entity_decode( addslashes ( wptexturize ( htmlentities( stripslashes ( $snippet_content ), ENT_NOQUOTES ) ) ) );
}
} else {
if ( ! empty( $snippet['snippet_wptexturize'] ) && ( $snippet['snippet_wptexturize'] == true ) ) {
$snippet_content = html_entity_decode ( addslashes ( wptexturize ( htmlentities( stripslashes ( $snippet_content ), ENT_NOQUOTES ) ) ) );
} else {
$snippet_content = html_entity_decode ( $snippet_content );
}
}It works
Dev version fixes the issue
Rolling back to 6.4.4 puts everything back to normal
Thanks !
Forum: Plugins
In reply to: [Leira Letter Avatar] Huge amount of files generatedQuick update, everything is fine now, number of avatars is contained. Thanks for your support.
Forum: Plugins
In reply to: [Leira Letter Avatar] Huge amount of files generatedI will
Forum: Plugins
In reply to: [Leira Letter Avatar] Huge amount of files generatedHi Ariel,
Ok for the calculation of the number of avatars involved depending on the theme file sizes.
I activated the new version with 30 colors to choose from, it should remain acceptable in terms of number of avatars generated.
Previous folder still has hundreds of thousands of them to delete, SSH turning night and day to get them out. As per now, I reclaimed 300 GB (not a typo) back on our server, which means millions of avatars were created over time.
I will follow up with the size of the new folder as soon as a significant amount of avatars have been created. As per now I can see each letter is now assigned a fixed color chosen from the pool I use. This is correct and I feel like it was not the case before.
Also, now each user really use the same avatar, I figured out that with previous setup, same user (same username, IP, email) had different avatars.
Forum: Plugins
In reply to: [Leira Letter Avatar] Huge amount of files generatedI just tried to limit the background to some selected colors, will see if this keeps the number of generated avatars to a reasonable amount. Still better than a fixed background color at last.
If I understand correctly, if I select 20 different HEX colors and we have 26 letters in alphabet, the total number of avatars should of 520 different svg files. Correct ?
Forum: Plugins
In reply to: [Leira Letter Avatar] Huge amount of files generatedHi Ariel, thanks for your answer,
I Use svg format, square avatar, Bold and Uppercase letters, white color for letters, and automatic background color for each user.
Using a fixed background color could indeed minimize the amount of created avatars, but it will be less visually attractive for users when a thread is full of comments.
Still, this discrepancy between the number of avatar files and users who at least once posted a comment is concerning. If it would match both numbers, this would not be an issue at all.
It also looks like that each time you activate disactivate the plugin or change something in settings, everything is recreated from scratch with new file numbers. Normal behavior indeed, but there should be a way to also delete old avatars because settings changed.
- This reply was modified 8 months, 1 week ago by hothbricks.
- This reply was modified 8 months, 1 week ago by hothbricks.