SOLVED [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046


Subject: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Hi, i have a problem:

Code: [Download] [Hide]
  1. [Icy Phoenix Debug] PHP Notice: in file /includes/functions.php on line 4035: readdir() expects parameter 1 to be resource, boolean given 
  2. [Icy Phoenix Debug] PHP Notice: in file /includes/functions.php on line 4046: closedir() expects parameter 1 to be resource, boolean given 


Link to my site and version in my signature.

Zona-Latina.net
Icy Phoenix 2.0.0.86

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Please enlighten us with more info Alexandro, like:

- on what url do you get the error?
- have you recently upgraded to the latest version (from GIT or the latest release from this site)
- have recently changed anything else?
- recently changed the Font?
- etc etc.. anything you can think of that may help us zoom into the problem :wink:

I for one don't find the error at multiple pages..not even when viewing posts (where I expeted it to appear).



 
Off Topic
:
BTW I'm going tp have to ask MG to make sure you are trully allowed to post those links here, I'll let you, because I'm not sure how strict these rules are exactly :oops:

Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
- on what url do you get the error? When I post a new post, when delete post. wen clear cache.
- have you recently upgraded to the latest version (from GIT or the latest release from this site), Its a upgrade fronm Icy 1.1.0.15, 1.2.0.27 & 1.3.0.53a; but this worked perfectly before the hosting was moved
- have recently changed anything else? Yes the hosting changed of server
- recently changed the Font? No

Thank you for the help. Forgive my english. :oops:

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Sofar your English is OK :wink: if you like finding help in (.well let's say..) Spannish ..you can visit http://www.icyphoenix.es/

Have you already tried the DB Maintenance tools in ACP?

DB And Security >> Database Maintenance

Don't do ALL blindly :!:
Only do the checks on posts and mayby do a repair and optimise (whatver you do.. do not reset anything).

Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Joshua203 wrote: [View Post]
Sofar your English is OK :wink: if you like finding help in (.well let's say..) Spannish ..you can visit http://www.icyphoenix.es/

Have
Thanks i Posted there too.

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Post above edited after your reply, please read again... Sorry

Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
alexandro wrote: [View Post]
Thanks i Posted there too.


Please let us know if the pannish speaking Team can help you solve your problem :wink:

Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Joshua203 wrote: [View Post]
Please let us know if they (Spannish speaking Team) can help you solve your problem :wink:

Ok. i tried the DB Maintenance tools in ACP... But the Problem continue

I escaped this:

Code: [Download] [Hide]
  1. //$cache_dirs_array = array(MAIN_CACHE_FOLDER, CMS_CACHE_FOLDER, FORUMS_CACHE_FOLDER, POSTS_CACHE_FOLDER, SQL_CACHE_FOLDER, TOPICS_CACHE_FOLDER, USERS_CACHE_FOLDER); 
  2. $cache_dirs_array = ((empty($cache_folder) || !in_array($cache_folder, $cache_dirs_array)) ? $cache_dirs_array : array($cache_folder)); 
  3. $files_counter = 0; 
  4. for ($i = 0; $i < sizeof($cache_dirs_array); $i++) 
  5. $dir = $cache_dirs_array[$i]; 
  6. $dir = ((is_dir($dir)) ? $dir : @phpbb_realpath($dir)); 
  7. $res = opendir($dir); 
  8. while(($file = readdir($res)) !== false) 
  9. $file_full_path = $dir . $file; 
  10. if (!in_array($file, $skip_files) && !is_dir($file_full_path)) 
  11. @chmod($file_full_path, 0777); 
  12. $res2 = @unlink($file_full_path); 
  13. $files_counter++; 
  14. if (($files_per_step > 0) && ($files_counter >= $files_per_step)) 
  15. closedir($res); 
  16. return $files_per_step; 
  17. closedir($res); 
and worked, but i don't know which is the consequense

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
No you should not escape that, it is containing both errors though (in both readdir and closedir) but it is expecting a 1 and it's getting a true or false.. (or something like that :oops: )

Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Joshua203 wrote: [View Post]
No you should not escape that, it is containing both errors (in both readdir and closedir) though but it is expecting a 1 and it's getting a true or false.. (or something like that :oops: )

I know this... i correct that although the problem return :D :'(

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Let's wait for someone smart :wink:

Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Yeeees the problem was the cache directory... This was empty i upload newly this directory and work perfectly Thanks for your support :D

Profile PM  
Subject: Re: [Icy Phoenix Debug] PHP Notice: In File /includes/functions.php On Line 4035 - 4046
Congratulations on fixing this issue by yourself :mryellow: I'll mark this as solved for you :wink:

PS.. Please next time post in one forum and give it a week at least,.. if no fix or reply ..post here.
Note: you are allowed to mark your own thread as fixed or solved, using the Title Edit button (Bottom Right of page)


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0866s (PHP: 23% SQL: 77%)
SQL queries: 10 - Debug Off - GZIP Enabled