Hi,
I just tried this out on my system - generated the object Event and
Vote
turned on encoding - etc etc...
so these are my thoughts.
When you installed the base64 plugin, did it succeed?
I've had issues with some databases from time to time, and installing
the plugin doesn't always work from setup... if, for example, the user
you are connected to the database with doesn't have permissions to
install procedures "Create_routine_priv" , or is not allowed to
execute them "Execute_priv", then it likely will not succeed.
if you have both then great... even then I've had occasional troubles
-- the db needs these privileges as well as the user perhaps? I'm not
sure at the moment.
If you don't have privileges, and you have root access to the db, you
can install the plugin by hand. You will need execute_priv for your db
and db user of course.
add to the top of the file plugins/base64_install.sql this:
delimiter |
then inject the procedures and table into your database;
mysql -u root -p yourdatabasename < plugins/base64_install.sql
Once it is there it should be ok.
this is my test index.php
<pre>
<?php
require_once 'configuration.php';
require_once 'objects/class.database.php';
require_once 'objects/class.vote.php';
require_once 'objects/class.event.php';
echo "hello\n";
$vote = new Vote();
$list = $vote->GetList();
echo count($list)."\n";
var_export($list);
echo 'done';
?>
</pre>
I used the setup area to put a couple values in Vote
for this test I installed this stuff in my `test` database, so I can
see the data in the db with
mysql -u root -p test
select * from vote;
the text data is encoded as expected -- setup seems fine. tests all
pass.
I hope this gives some clue to what is different between us.
-Mark