Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002460 [Quercus] minor always 02-27-08 15:15 02-28-08 16:06
Reporter ferg View Status public  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0002460: pligg issues
Description (rep by Stargazer)


The Pligg verbosity I mentioned in the last few snapshots its still
present, which is a shame as we can't go live with such enourmous
logfiles being generated. Is there some way I can turn it off?

Here is a sample and a few exceptions I noticed immediately, all with a
default Pligg site and just a visit to its main page:

y";i:0;s:3:"def";s:0:"";s:4:"name";s:13:"category_name";s:4:"type";s:6:"string"
s:7:"numeric";i:0;s:12:"multiple_key";i:0;s:8:"zerofill";i:0;s:10:"max_length";
:0;s:5:"table";s:16:"pligg_categories";}i:2;O:8:"stdClass":13:{s:8:"not_null";i
1;s:11:"primary_key";i:0;s:8:"unsigned";i:0;s:4:"blob";i:0;s:10:"unique_key";i:
;s:3:"def";s:0:"";s:4:"name";s:18:"category_safe_name";s:4:"type";s:6:"string";
:7:"numeric";i:0;s:12:"multiple_key";i:0;s:8:"zerofill";i:0;s:10:"max_length";i
0;s:5:"table";s:16:"pligg_categories";}i:3;O:8:"stdClass":13:{s:8:"not_null";i:
;s:11:"primary_key";i:0;s:8:"unsigned";i:0;s:4:"blob";i:0;s:10:"unique_key";i:0
s:3:"def";s:0:"";s:4:"name";s:13:"category_lang";s:4:"type";s:6:"string";s:7:"n
meric";i:0;s:12:"multiple_key";i:0;s:8:"zerofill";i:0;s:10:"max_length";i:0;s:5
"table";s:16:"pligg_categories";}}s:11:"last_result";a:2:{i:0;O:8:"stdClass":4:
s:18:"category_safe_name";s:3:"all";s:13:"category_name";s:3:"all";s:13:"catego
y_lang";s:2:"en";s:11:"category_id";s:1:"0";}i:1;O:8:"stdClass":4:{s:18:"catego
y_safe_name";s:5:"pligg";s:13:"category_name";s:5:"pligg";s:13:"category_lang";
:2:"en";s:11:"category_id";s:1:"1";}}s:8:"num_rows";i:2;s:12:"return_value";i:2
}
7-Feb-2008 22:53:28 RESIN 3.1.5 Compiling _quercus/_libs/_login__php.java
7-Feb-2008 22:53:28 RESIN 3.1.5 Compiling _quercus/_modules/_modules_0init__php
java
7-Feb-2008 22:53:28 RESIN 3.1.5 Compiling _quercus/_modules/_modules_0libs__php
java
7-Feb-2008 22:53:28 RESIN 3.1.5 java.lang.NoClassDefFoundError: _quercus/_modul
s/_modules_0libs__php$fun_module_db_add_field
7-Feb-2008 22:53:28 RESIN 3.1.5 at java.lang.Class.getDeclaredConstructo
s0(Native Method)
7-Feb-2008 22:53:28 RESIN 3.1.5 at java.lang.Class.privateGetDeclaredCon
tructors(Class.java:2389)
7-Feb-2008 22:53:28 RESIN 3.1.5 at java.lang.Class.getConstructor0(Class
java:2699)
7-Feb-2008 22:53:28 RESIN 3.1.5 at java.lang.Class.newInstance0(Class.ja
a:326)
7-Feb-2008 22:53:28 RESIN 3.1.5 at java.lang.Class.newInstance(Class.jav
:308)
7-Feb-2008 22:53:28 RESIN 3.1.5 at com.caucho.quercus.page.ProPageManage
.createPage(ProPageManager.java:149)
7-Feb-2008 22:53:28 RESIN 3.1.5 at com.caucho.quercus.page.ProPageManage
.access$200(ProPageManager.java:39)
7-Feb-2008 22:53:28 RESIN 3.1.5 at com.caucho.quercus.page.ProPageManage
$CompileThread.run(ProPageManager.java:199)
7-Feb-2008 22:53:28 RESIN 3.1.5 at com.caucho.util.ThreadPool$Item.runTa
ks(ThreadPool.java:721)
7-Feb-2008 22:53:28 RESIN 3.1.5 at com.caucho.util.ThreadPool$Item.run(T
readPool.java:643)
7-Feb-2008 22:53:28 RESIN 3.1.5 at java.lang.Thread.run(Thread.java:619)

7-Feb-2008 22:53:28 RESIN 3.1.5 Caused by: java.lang.ClassNotFoundException: _q
ercus._modules._modules_0libs__php$fun_module_db_add_field [java.io.IOException
class file length mismatch]
7-Feb-2008 22:53:28 RESIN 3.1.5 at com.caucho.loader.DynamicClassLoader.
indClassImpl(DynamicClassLoader.java:1383)
7-Feb-2008 22:53:28 RESIN 3.1.5 at com.caucho.loader.DynamicClassLoader.
oadClassImpl(DynamicClassLoader.java:1280)
7-Feb-2008 22:53:28 RESIN 3.1.5 at com.caucho.loader.DynamicClassLoader.
oadClass(DynamicClassLoader.java:1213)
7-Feb-2008 22:53:28 RESIN 3.1.5 at com.caucho.loader.DynamicClassLoader.
oadClass(DynamicClassLoader.java:1198)
7-Feb-2008 22:53:28 RESIN 3.1.5 at java.lang.ClassLoader.loadClassIntern
l(ClassLoader.java:319)
7-Feb-2008 22:53:28 RESIN 3.1.5 ... 11 more



Additional Information
Attached Files

- Relationships

- Notes
(0002797)
mo
02-28-08 14:39

This problem is caused by an unimplemented feature in the Quercus
version of PHP's error_log() API.

Plig's ez_sql_core.php invokes error_log on line 348 in
release Pligg_Beta_9.9.0.

// Cache all result values
$result_cache = array
(
  'col_info' => $this->col_info,
  'last_result' => $this->last_result,
  'num_rows' => $this->num_rows,
  'return_value' => $this->num_rows,
);
error_log ( serialize($result_cache), 3, $cache_file);

This should append to $cache_file ($PLIGG/cache/06f9cf1b825fe742fead9e5c4a694a8d), but Quercus
does not support the message_type = 3 parameter to append
to a file. Insteadm the cache is written to the log and
this results in lots of log output.
 
(0002798)
mo
02-28-08 16:03

Added Regression Test:

php/180s
 
(0002799)
mo
02-28-08 16:06

Fixed by adding append to file logic to error_log(), confirmed that
the output no longer appears in the log when running pligg.
 

- Issue History
Date Modified Username Field Change
02-27-08 15:15 ferg New Issue
02-28-08 14:39 mo Note Added: 0002797
02-28-08 16:03 mo Note Added: 0002798
02-28-08 16:06 mo Status new => closed
02-28-08 16:06 mo Note Added: 0002799
02-28-08 16:06 mo Resolution open => fixed


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
33 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker