FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Asset manager plugin

Feed 276 posts, 32 voices

Avatar
291 posts

Hmmh. It seems paths are handled somehow differently in your setup. If you have “assets” in your settings asset folder try changing it to “/assets”.

Are you running latest from SVN or 0.9.5RC2?

 
Avatar
17 posts

I’ve tried it using both from SVN and 0.9.5RC2 and I still get the small images.

I have a basic Ubuntu setup.

Changing the folder to /assets makes no difference.

 
Avatar
291 posts

I’ve created the folder /var/www/frog/admin/assets and thus created a symbolic link to the /var/www/assets folder (sudo ln -s /var/www/assets/ /var/www/frog/admin/assets) right-clicking on the images open them in a new window fine.

Have you had this symlink setup all the time or did you create it as attempt to fix the problem?

 
Avatar
17 posts

I created it to try and fix the problem.

All the images I upload go into /var/www/assets whilst clicking on the thumbnails, these seem to want to try and get them from var/www/frog/admin/assets

I simply created the symlink to point to the admin folder to see If that helped displaying the images, but It didn’t

 
Avatar
17 posts

Anyone have any ideas?

 
Avatar
291 posts

I was able to reproduce your problem by doing a fresh Frog install. Will fix the problem soon. Hopefully today.

 
Avatar
17 posts

Excellent!

Thank you

 
Avatar
17 posts

Any news on this?

I’d really like to test it

Thanks

 
Avatar
42 posts

hey tuupola

I have a problem with assets plug-in. I’m using FROG 0.9.5RC1. Downloaded jQuery, jQuery UI, Image Resize and Assets plug-ins, unziped them and uploaded them to plugin directory. Now when i enabled all those plugins a lost all my administration page. Take a look at this picture:

What did i do wrong and how can i fix this?
Sorry for that big pic.

 
Avatar
291 posts

It seems like you are hitting maximum possible plugins bug in Frog. Check your frog_settings table. Does it look like following:

CREATE TABLE frog_settings (
    name VARCHAR(40),
    value VARCHAR(255)
)

? Problem is the VARCHAR. Change it to TEXT.

CREATE TABLE frog_settings (
    name VARCHAR(40),
    value TEXT
)

This fixes the problem. It is NOT a plugin problem. It is Frog problem. I thought this was fixed in 0.9.5? Maybe you have upgraded without upgrading the database schemas?

 
Avatar
1493 posts

Uh oh. Looks like this slipped through the cracks in SVN. This is the CURRENT install/schema_mysql.php bit for plugins:

$PDO->exec("CREATE TABLE ".TABLE_PREFIX."plugin_settings (
  plugin_id varchar(40) NOT NULL,
  name varchar(40) NOT NULL,
  value varchar(255) NOT NULL,
  UNIQUE KEY plugin_setting_id (plugin_id,name)
) ENGINE=MyISAM DEFAULT CHARSET=utf8");

We’ll get that sorted before 0.9.5. final!

 
Avatar
291 posts

But the problem still is TABLE_PREFIX . settings table. Enabled plugins are stored there as serialized array. When you enable too many plugins the string which is created by serializing the array becomes more than 255 characters. When only part of the serialized array is saved to database PHP cannot unserialize it. Thus Frog sees an empty array and says NO PLUGINS ENABLED. FAIL.

 
Avatar
1493 posts

I’m a stupid boy! Ignore me. :P

 
Avatar
184 posts

David, are we going to see the field type support above 255 chars? as I too have noticed this limitation recently for my GoogleMap plugin and was wondering if it was worth changing the field type from within the plugin, but would rather not interfere with the core if it can be helped.

 
Avatar
17 posts

tuupola, any news when the fix to my problem will be completed?

I’d really like to use the asset manager, but the small white boxes are still a problem for me.

Thank you.

 
Avatar
291 posts

I know where the problem is but haven’t had time to fix it. It happens when you first start to use the plugin and fixes itself when you first select a different folder from pulldown menu.

 
Avatar
42 posts

hey tuupola…i went to phpMyadmin and changed value to text…then uploaded these plugins again and the same thing happend again…and what i noticed was that TinyMCE is fuck’d up now :(
picture too:

Also when i delete these plugins throw ftp i get normal Frog administration back.

 
Avatar
291 posts

Enable debugging in config.php to see if you get any PHP errors. I run SVN and 0.9.5RC2 and can not reproduce the enabling problem. Have not tried RC1. I skipped it totally because some things were changed immediatly after publishing it.

 
Avatar
651 posts
? Problem is the VARCHAR. Change it to TEXT. 

This was fixed way back in revision 368 of SVN and therefore is already in Frog 0.9.5 RC2.

Things like these are also the reason why I advise people to drop & recreate their database from scratch in updating.txt

 
Avatar
42 posts

I Enabled debugging in config.php but where i look/watch for those PHP errors? Not expert in these sort of things.

 
Avatar
291 posts

In the page where the problem is. PHP should spit out the errors there.

 
Avatar
42 posts

try’d that and nothing happend :( debugging gives no errors

EDIT: when i delete other plugins, my admin also don’t go back to normal

 
Avatar
42 posts

i just updated to RC2 (form scratch) and that same thing keeps happening :( i don’t understand what i’m doing wrong

 
Avatar
67 posts

Hi Kristjan,

I’m having a similar problem adding a contact form – see this thread below !
(not sure but may be related ? )
cheers Dave
http://forum.madebyfrog.com/topic/1229

 
Avatar
291 posts

i just updated to RC2 (form scratch) and that same thing keeps happening :( i don’t understand what i’m doing wrong

Have you tried enabling plugins one by one to see which one causes the problem?