*

Cesar

  • *
  • 2 posts
[BUG] Gamma, error in child theme in ad loop on home page.
« on: June 01, 2023, 05:47:01 PM »
Error in child theme in ad loop on home page.

Log:

01-Jun-2023 17:26:05 Europe/Madrid] PHP Warning: require(/home/project/myweb.com/oc-content/themes/gamma_child/loop-single.php): failed to open stream: No such file or directory in /home/project/myweb.com/oc-content/themes/gamma/functions.php on line 1899
[01-Jun-2023 17:26:05 Europe/Madrid] PHP Fatal error: require(): Failed opening required '/home/project/myweb.com/oc-content/themes/gamma_child/loop-single.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/project/myweb.com/oc-content/themes/gamma/functions.php on line 1899

Temporary solution:

Copy the file "loop-single.php" to the directory of the child theme "gamma_child".

Petition:

Fix this error in the original theme Gamma.

*

MB Themes

Re: [BUG] Gamma, error in child theme in ad loop on home page.
« Reply #1 on: June 05, 2023, 11:09:53 AM »
@Cesar
You may need to bring all relevant files those are included in modified one.
Lastest Osclass might be able to handle it.

Code: [Select]
Child themes feature has been redesigned:
osc_current_web_theme_path, osc_current_web_theme_url - functions will now "hard" check child theme folders to identify child files.
osc_current_web_theme_path_value - new function created - function work in same way as osc_current_web_theme_url and return expected path.
Much better functionality at all, now it is not required to create all theme files for proper functionality of child theme.
No changes has been made in way how child theme is created and setup.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots