Grafidea Posted April 25 Share Posted April 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} Link to comment Share on other sites More sharing options...
Grafidea Posted April 25 Author Share Posted April 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} Link to comment Share on other sites More sharing options...
Marc Posted April 25 Share Posted April 25 Please test this on a default unaltered theme first of all, and let us know if you are still seeing any issues Link to comment Share on other sites More sharing options...
Grafidea Posted April 25 Author Share Posted April 25 (edited) 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 by Grafidea Link to comment Share on other sites More sharing options...
Marc Posted April 25 Share Posted April 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 Link to comment Share on other sites More sharing options...
Grafidea Posted April 25 Author Share Posted April 25 The default template also has errors. Two errors. Link to comment Share on other sites More sharing options...
Jim M Posted April 25 Share Posted April 25 Could you please clarify what is being done when receiving this? It looks like an image is being resized but has invalid properties. Link to comment Share on other sites More sharing options...
Grafidea Posted April 25 Author Share Posted April 25 (edited) 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 by Grafidea Link to comment Share on other sites More sharing options...
Nathan Explosion Posted April 25 Share Posted April 25 Looks like setting an image height/width value, probably an ajax call. Link to comment Share on other sites More sharing options...
Grafidea Posted April 25 Author Share Posted April 25 1 minute ago, Nathan Explosion said: Looks like setting an image height/width value, probably an ajax call. That's a hacker-spammer attack. Link to comment Share on other sites More sharing options...
Daniel F Posted April 25 Share Posted April 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. Grafidea 1 Link to comment Share on other sites More sharing options...
Grafidea Posted April 25 Author Share Posted April 25 This is an error that's triggered by some spammer. Can we block the IP from the IPS panel? Link to comment Share on other sites More sharing options...
Randy Calvert Posted April 25 Share Posted April 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). Jim M 1 Link to comment Share on other sites More sharing options...
Grafidea Posted April 25 Author Share Posted April 25 Thanks. I've blocked it at the htaccess file level, unfortunately, Cloudflare's free version doesn't provide the option to block IPs. Link to comment Share on other sites More sharing options...
Jim M Posted April 25 Share Posted April 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 😉 Grafidea 1 Link to comment Share on other sites More sharing options...
Randy Calvert Posted April 25 Share Posted April 25 Take a look at the following: https://community.cloudflare.com/t/how-to-block-a-particular-ip-address-in-cloudflare-thank-you/498515 Grafidea 1 Link to comment Share on other sites More sharing options...
Grafidea Posted April 25 Author Share Posted April 25 @Randy Calvert done, very thanks! Link to comment Share on other sites More sharing options...
Nathan Explosion Posted April 25 Share Posted April 25 51 minutes ago, Grafidea said: That's a hacker-spammer attack. Is it? Link to comment Share on other sites More sharing options...
Grafidea Posted April 25 Author Share Posted April 25 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. Link to comment Share on other sites More sharing options...
Recommended Posts