• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows PHP Help,

drifter8779

Member
Joined
Oct 17, 2009
Messages
160
Reaction score
7
I have these problems, im not sure what to do. Znote ACC

Code:
PHP Warning:  fopen(engine/cache/topPlayer.cache.php): failed to open stream: Permission denied in \httpdocs\engine\function\cache.php on line 91
PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in \httpdocs\engine\function\cache.php on line 92
PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in \httpdocs\engine\function\cache.php on line 93
PHP Warning:  fopen(engine/cache/news.cache.php): failed to open stream: Permission denied in \httpdocs\engine\function\cache.php on line 91
PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in \httpdocs\engine\function\cache.php on line 92
PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in \httpdocs\engine\function\cache.php on line 93
 
cache.php need write and read access to /engine/cache/ directory so it can function to cache your data.

If you use Linux, while not being familiar with it this should do the trick:
cd to httpdocs
chmod 777 -R *
chown www-data -R *
 
I think giving www-data user rights to cache.php should be enough for it to function in the httpdocs directory and all sub directories unless you transferred the files over there with root user. In which you need to fix the permissions.
Also the default cache files should be deleted so cache.php don't get rewrite conflicts with user rights. (/engine/cache)
 
Okay ill do that, the other problem i have is when i import the database from th server it gives me an sql error, and then the website gives me this error
Code:
PHP Warning:  mysql_result() expects parameter 1 to be resource, boolean given in C:\Inetpub\vhosts\Tibiaplace.secureserver.net\httpdocs\engine\function\general.php on line 102
 
I have these problems, im not sure what to do. Znote ACC

Code:
PHP Warning:  fopen(engine/cache/topPlayer.cache.php): failed to open stream: Permission denied in \httpdocs\engine\function\cache.php on line 91
PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in \httpdocs\engine\function\cache.php on line 92
PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in \httpdocs\engine\function\cache.php on line 93
PHP Warning:  fopen(engine/cache/news.cache.php): failed to open stream: Permission denied in \httpdocs\engine\function\cache.php on line 91
PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in \httpdocs\engine\function\cache.php on line 92
PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in \httpdocs\engine\function\cache.php on line 93
to whomever is reading this quick solution is to find engine/init.php and paste it under <? tag
error_reporting(E_ERROR | E_PARSE);
other thing is run your apache service + mysql as administrator on windows 10! in xampp
 
Back
Top