Answer the question
In order to leave comments, you need to log in
[DLE] How to remove error when inserting php code into tpl?
I actually output the php code to the tpl file as follows: {include file="engine/modules/giveitem.php"}
giveitem.php in turn includes the shop.php file. In the output I get the following error:
Warning: stream_set_timeout() expects parameter 1 to be resource, boolean given in Z:\home\mine.ru\www\engine\modules\shop.php on line 36 Warning: fwrite() expects parameter 1 to be resource, boolean given in Z:\home\mine.ru\www\engine\modules\shop.php on line 57 Warning: fwrite() expects parameter 1 to be resource, boolean given in Z:\home\mine.ru\www\engine\modules\shop.php on line 57 Warning: fwrite() expects parameter 1 to be resource, boolean given in Z:\home\mine.ru\www\engine\modules\shop.php on line 57
Answer the question
In order to leave comments, you need to log in
There is a suspicion that the modules you installed are not adapted to your version of DLE.
1. The error is that after opening the socket you do not check the success of its opening.
2. Use __construct instead of a method with name = class name
PS There is one more problem, but I don't think it can be fixed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question