Causes HTTP error 500 (Internal Server Error)

Created on 6 August 2023, over 1 year ago
Updated 8 August 2023, over 1 year ago

Hi,

about once per week, 'DXPR Theme' terminates access to the website with 'DXPR Theme' as main theme enable. No sub-theme, no modifications to the theme files. Installed version is 7.x-1.6 from 2023-Apr-20. Also installed and enabled is 'dxpr_theme_helper', version 7.x-1.0 from 2020-Jun-21.

When this issue occurs, the webserver reports an "HTTP error 500" which is a unspecified internal server error. Other websites on the same server (without 'DXPR Theme') are unaffected.

It is impossible to access the affected website via web browser. No login possible.

With shell access to the webserver and Drush installed, I can not query Drupal's status (drush st). When trying to clear all caching tables I get:

drush cc
Argument 2 passed to _dxpr_theme_cache_google_fonts() must be an instance of string, string given, called in /var/www/…/sites/all/themes/dxpr_theme/features/sooper-fonts/fonts-theme-settings-controller.inc on line 53 and defined
fonts-theme-settings-controller.inc:79
E_RECOVERABLE_ERROR encountered; aborting. To ignore recoverable errors, run again with --no-halt-on-error
Drush command terminated abnormally due to an unrecoverable error.

The --no-halt-on-error parameter is the workaround to gain acces to the website again.

However, Drush's error message points to the root cause which seems to be connected with caching, google_fonts() respectively 'sooper-fonts'. Clearing the site's caches gets rid of the error, but it requires as well Shell access to the server as installed Drush.

Maybe a better workaround than using the Shell and Drush would be to provide a possibility to disable the whole webfont mechanism in the theme's settings (in the hope to circumvent this "HTTP error 500" problem).

πŸ› Bug report
Status

Postponed: needs info

Version

1.6

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany asb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @asb
  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡ΊπŸ‡¦Ukraine twilderan Kyiv, Ukraine πŸ‡ΊπŸ‡¦

    Hello @asb, thank you for reporting this to us. We are looking into this issue.

    Could you please share the next information with us?
    - Installed PHP version on the server
    - Installed Drupal version
    - Do you have dxpr_theme folder in your public files folder, e.g. /sites/default/files/dxpr_theme/fonts?

  • πŸ‡©πŸ‡ͺGermany asb

    @twilderan: Thanks for your reply.

    Drupal version: 7.98
    PHP version: 5.6.40-0+deb8u12

    # ls -la sites/default/files/dxpr_theme/fonts
    total 232
    drwxrwxr-x 2 www-data www-data  4096 Aug  7 00:05 .
    drwxrwxr-x 3 www-data www-data  4096 Jul 16 04:53 ..
    -rw-rw-r-- 1 root     root      5836 Aug  7 00:05 6xK3dSBYKcSV-LCoeQqfX1RYOo3qN67lqDY.woff2
    -rw-rw-r-- 1 root     root      5024 Aug  7 00:05 6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lqDY.woff2
    -rw-rw-r-- 1 root     root      6004 Aug  7 00:05 6xK3dSBYKcSV-LCoeQqfX1RYOo3qNK7lqDY.woff2
    -rw-rw-r-- 1 root     root     20616 Aug  7 00:05 6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lqDY.woff2
    -rw-rw-r-- 1 root     root      7036 Aug  7 00:05 6xK3dSBYKcSV-LCoeQqfX1RYOo3qO67lqDY.woff2
    -rw-rw-r-- 1 root     root     14892 Aug  7 00:05 6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2
    -rw-rw-r-- 1 root     root      7972 Aug  7 00:05 6xK3dSBYKcSV-LCoeQqfX1RYOo3qPK7lqDY.woff2
    -rw-rw-r-- 1 root     root       916 Aug  7 00:04 6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidg18Smxg.woff2
    -rw-rw-r-- 1 root     root      1040 Aug  7 00:04 6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidh18Smxg.woff2
    -rw-rw-r-- 1 root     root     19828 Aug  7 00:05 6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidi18Smxg.woff2
    -rw-rw-r-- 1 root     root      5756 Aug  7 00:05 6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidj18Smxg.woff2
    -rw-rw-r-- 1 root     root      1032 Aug  7 00:04 6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkido18Smxg.woff2
    -rw-rw-r-- 1 root     root     14104 Aug  7 00:05 6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkids18Q.woff2
    -rw-rw-r-- 1 root     root      1220 Aug  7 00:04 6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidv18Smxg.woff2
    -rw-rw-r-- 1 root     root      7912 Aug  7 00:05 6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwkxduz8A.woff2
    -rw-rw-r-- 1 root     root      6968 Aug  7 00:05 6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlBduz8A.woff2
    -rw-rw-r-- 1 root     root     14780 Aug  7 00:05 6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2
    -rw-rw-r-- 1 root     root      5816 Aug  7 00:05 6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmBduz8A.woff2
    -rw-rw-r-- 1 root     root      4928 Aug  7 00:05 6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmhduz8A.woff2
    -rw-rw-r-- 1 root     root     20388 Aug  7 00:05 6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmRduz8A.woff2
    -rw-rw-r-- 1 root     root      5996 Aug  7 00:05 6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmxduz8A.woff2
    -rw-rw-r-- 1 root     root      7265 Aug  7 00:05 font-face.css
Production build 0.71.5 2024