Jump to content

Featured Replies

Posted
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}

  • 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}

  • Community Expert

Please test this on a default unaltered theme first of all, and let us know if you are still seeing any issues

  • 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 by Grafidea

  • Community Expert
 

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

  • Author

The default template also has errors. Two errors.

Could contain: Page, Text, File, WebpageCould contain: Page, Text, File, Webpage

  • Community Expert

Could you please clarify what is being done when receiving this? It looks like an image is being resized but has invalid properties.

  • 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.

Could contain: Text, Page

Could contain: Page, Text, File, Webpage

Edited by Grafidea

Looks like setting an image height/width value, probably an ajax call.

  • Author
 

Looks like setting an image height/width value, probably an ajax call.

That's a hacker-spammer attack. 

Could contain: Page, Text, Number, Symbol

  • Author

This is an error that's triggered by some spammer. Can we block the IP from the IPS panel?

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).

  • Author

Thanks. I've blocked it at the htaccess file level, unfortunately, Cloudflare's free version doesn't provide the option to block IPs.

  • Community Expert
 

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 😉 

 

That's a hacker-spammer attack. 

Is it?

  • 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.

Recently Browsing 0

  • No registered users viewing this page.