![]() ![]() I guess here is that including the dirname (_FILE_) ensures that the require_once function uses an absolute rather than relative path. I am using a php library which has this code: require_once dirname(_FILE_). No such file or directory in require_once() (line 11 of /home/CpanelUserName/public_html/themes/ThemeName/ThemeName.theme) This problem arises from below error: Warning: require_once(/home/cPanelUserName/public_html/themes/ThemeName./lib/): After reading a lot of error messages in Drupal watchdog error logs I found something interesting. It may happen to anyone like this problem. With especial thank to Anurag, I appreciate him for his constructive comment. Is there any tips or standard that I should consider for creating and uploading my theme from local host to real product host? ![]() ![]() This problem makes me very deuced because in localhost everything works normally and haven't any problem and in cpanel host nothing I even install another local host with new drupal core and test my theme and I have not encountered any problems. I uninstall and install again my theme and clean cash several times and It is worth noting that other themes like bartik or downloaded theme from drupal center work correctly in product host. In cpanel host my theme shows up and treat like other themes and install without any problem or error message,īut the problem here: theme setting page and home page not showing anything (show only a blank empty page without any content in it, a white screen only show up). Newly I designed and create a new theme for drupal 8 locally, everything works correctly on my localhost and I haven't any problem in localhost environment, but the problem arises when I decide to upload my theme to real cpanel host (product server). ![]()
0 Comments
Leave a Reply. |