41
Dave_L
Re: XOOPS 2.0.17.1 Final
  • 2007/9/25 1:48

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I meant for both fopen's to be replaced, since we're not sure which one is causing the error.

If the info isn't displayed long enough for you to read it, you could try capturing it to a file like this:

error_reporting(E_ALL E_STRICT);
ini_set('display_errors');
$file fopen($filename"w");
if (!
$file) {
   
ob_start();
   echo 
'failed open file';
   
var_dump('filename'$filename'file'$file);
   
$buf ob_get_clean();
   
$timestamp date('Y-m-d H:i:s');
   
error_log("[$timestamp]n$bufnn"3XOOPS_CACHE_PATH '/debug.log');
   return 
false;
}


Thanks for the help.



42
Dave_L
Re: XOOPS 2.0.17.1 Final
  • 2007/9/25 0:44

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:

jfmoore wrote:
The upgrade instructions in the Upgrade directory are wrong.


Thanks, we'll get that fixed.



43
Dave_L
Re: XOOPS 2.0.17.1 Final
  • 2007/9/25 0:39

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


To help troubleshoot, could you try this?

In the file include/cp_functions.php, in functions xoops_module_write_admin_menu and xoops_write_index_file,

change:

if ( !$file fopen($filename"w") ) {
   echo 
'failed open file';


to:

error_reporting(E_ALL E_STRICT);
ini_set('display_errors');
$file fopen($filename"w");
var_dump('filename'$filename'file'$file);
if (!
$file) {
   echo 
'failed open file';
   
sleep(60);


And post the output from the var_dump's, along with any error messages.

Actually, I'm a little suspicious of the original code. Personally, I prefer a more explicit check when I use fopen:
if ( ($file fopen($filename"w")) === false ) {

But I'm not sure if it would make any difference here.



44
Dave_L
Re: XOOPS 2.0.17.1 Final
  • 2007/9/24 20:55

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:
I wonder if Dave_L meant index.html but wrote .php?


Yes, I meant index.html.



45
Dave_L
Re: XOOPS 2.0.17.1 Final
  • 2007/9/24 13:17

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


And the files cache/adminmenu.php and cache/index.php were created?

What is WinSCP?



46
Dave_L
Re: XOOPS 2.0.17.1 Final
  • 2007/9/24 12:50

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:
"fail to open file"


I don't recall encountering that.

I searched for the string "fail to open file", but couldn't find it. But I found "failed open file" in two places in include/cp_functions.php, at lines 277 and 303. These are writes to the files cache/adminmenu.php and cache/index.php, respectively.

Is your cache directory writeable?



47
Dave_L
XOOPS 2.0.17.1 Final
  • 2007/9/23 12:14

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The core development team is planning on releasing XOOPS 2.0.17.1 Final in approximately one week.

If you haven't tested 2.0.17.1 RC yet, please try to do so, and report any bugs promptly.



48
Dave_L
Re: get data from textbox
  • 2007/9/23 9:42

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


$myts  =& MyTextSanitizer::getInstance();
$word  =  $myts->addSlashes($_POST['word']);
$table =  $xoopsDB->prefix('tb1');
$query =  "SELECT * FROM `$table` WHERE `word` LIKE '%{$word}%'";



49
Dave_L
Re: What takes the liberty XOOPS?
  • 2007/9/17 11:27

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


That proves my point.



50
Dave_L
Re: What takes the liberty XOOPS?
  • 2007/9/17 11:12

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


It's partly your fault. Your destructive posts about the people who are trying to rebuld the XOOPS project result in a lack of motivation among people who might otherwise want to help.




TopTop
« 1 2 3 4 (5) 6 7 8 ... 212 »



Login

Who's Online

169 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits