Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 25, 2024Apr 25 DivisionByZeroError: Division by zero in /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/uploads/template_109_332e5eb3dbfb47dce95fbfdfc706f0dc_editor.php:621 Stack trace: #0 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_global_editor->image('topic_content', '0', 0.0, '0', '0', NULL, NULL, 1.0, 1.0, '', '''') #1 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/applications/core/modules/front/system/editor.php(91): IPS\Theme\_SandboxedTemplate->__call('image', Array) #2 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_editor->image() #3 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #4 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/index.php(13): IPS\_Dispatcher->run() #5 {main} #0 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(DivisionByZeroError), 'template_error') #1 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/applications/core/modules/front/system/editor.php(91): IPS\Theme\_SandboxedTemplate->__call('image', Array) #2 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_editor->image() #3 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #4 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/index.php(13): IPS\_Dispatcher->run() #5 {main}
April 25, 2024Apr 25 Author DivisionByZeroError: Division by zero in /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/uploads/template_109_332e5eb3dbfb47dce95fbfdfc706f0dc_editor.php:621 Stack trace: #0 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_global_editor->image('topic_content', '0', 0.0, '0', '0', NULL, NULL, 1.0, 1.0, '', '''') #1 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/applications/core/modules/front/system/editor.php(91): IPS\Theme\_SandboxedTemplate->__call('image', Array) #2 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_editor->image() #3 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #4 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/index.php(13): IPS\_Dispatcher->run() #5 {main} #0 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(DivisionByZeroError), 'template_error') #1 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/applications/core/modules/front/system/editor.php(91): IPS\Theme\_SandboxedTemplate->__call('image', Array) #2 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_editor->image() #3 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #4 /var/www/563514d3-8ae0-4e69-a562-14d8a16e05cb/public_html/index.php(13): IPS\_Dispatcher->run() #5 {main}
April 25, 2024Apr 25 Please test this on a default unaltered theme first of all, and let us know if you are still seeing any issues
April 25, 2024Apr 25 Author I'm not sure if you're experiencing any outage, but your forum is taking 30 seconds to load. Please verify this. The issues occurred suddenly; nothing has been edited in the template for a month. Edited April 25, 2024Apr 25 by Grafidea
April 25, 2024Apr 25 4 minutes ago, Grafidea said: I'm not sure if you're experiencing any outage, but your forum is taking 30 seconds to load. Please verify this. The issues occurred suddenly; nothing has been edited in the template for a month. We are aware of the speed issues on our site. I appreciate what you are saying there, but that being the case, the same could be said for anything else causing the problem
April 25, 2024Apr 25 Could you please clarify what is being done when receiving this? It looks like an image is being resized but has invalid properties.
April 25, 2024Apr 25 Author I have no idea, errors are being generated by the guest. They keep increasing from minute to minute. They're almost 10MB now. See for yourself. Edited April 25, 2024Apr 25 by Grafidea
April 25, 2024Apr 25 Author 1 minute ago, Nathan Explosion said: Looks like setting an image height/width value, probably an ajax call. That's a hacker-spammer attack.
April 25, 2024Apr 25 I've fixed here recently a bug for the next release.. I'll take a look @Grafidea just to confirm that it's the same and not something else.
April 25, 2024Apr 25 Author This is an error that's triggered by some spammer. Can we block the IP from the IPS panel?
April 25, 2024Apr 25 The software is not the place where you would want to block/ban an IP address. If they reach the software, the request still has to be executed. You would want to block them either at the network layer with a WAF (like Cloudflare) or at the server layer with a server firewall (CSF or .htaccess blocking).
April 25, 2024Apr 25 Author Thanks. I've blocked it at the htaccess file level, unfortunately, Cloudflare's free version doesn't provide the option to block IPs.
April 25, 2024Apr 25 1 minute ago, Grafidea said: Thanks. I've blocked it at the htaccess file level, unfortunately, Cloudflare's free version doesn't provide the option to block IPs. It does indeed 😉
April 25, 2024Apr 25 Take a look at the following: https://community.cloudflare.com/t/how-to-block-a-particular-ip-address-in-cloudflare-thank-you/498515
April 25, 2024Apr 25 Author After blocking the spammer's IP, the errors in the event log stopped. The rest must be verified by the IPS team to see if this is an error that needs to be fixed.