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

Asset manager plugin

Feed 276 posts, 32 voices

Avatar
3 posts

I thought I’d make you aware of the error I had with this plugin. I haven’t been able to solve it (no time) but worked around it instead.

My test frog installation is located at frogcms-testsite which means the variable frog_root is set (by assets_frog_root) to \frogcms-testsite. However \f is a special character which gets converted leaving frog_root actually set to rogcms-testsite. Obviously this causes all the server calls to fail as it is wrong.

I’ve worked around it simply by setting the variable in the js file as is required for 0.9.4.

I thought I’d post about this in case someone else comes across the same problem.

btw I’m running wampserver on windows and the latest version of Frog and all the plugins, in case that makes a difference.

 
Avatar
3 posts

Hey guys,

i do habe a rather strange problem with my asset plugin for which i could not find a solution in the forums.
i now got it working after reading this thread and discovering the problem with the folder name but now
also i have activiated the asset plugin, nothing is displayed in the pages section of a site. there is just a emtpy space,
now loading image like another person had. furthermore there is nothing shown in the source code, no div id=assets or
some sort of that, i just have that emty white space right to my textfield.
any ideas?

iam running the 0.95 stable version and dont have many plugins running whereas all are up to date…

greetings
tobman

 
Avatar
291 posts

Enable debugging to see the possible PHP error.

 
Avatar
3 posts

Hey,

it does not print any errors, there is just this white space next to the textarea where the asset plugin should be displayed.
i just discovered that while clicking on the button for creating a new asset location it gets me to the pages section without
doing anything…

any suggestions?

greetings

 
Avatar
291 posts

Can you make a screenshot. I am not sure if I understand correctly what the actual problem is.

 
Avatar
3 posts

Here a screenshot:

 
Avatar
16 posts

Hi
Great plugin…very friendly for non-technical users (like my current client!).
I’m making a site where there are several categories of product, each with 20 odd items. My problem is that when I create a page only 8 of the product thumbnails appear on the right. Looking at the generated code only 8 are listed?

Has anyone else encountered this issue and worked around it?

 
Avatar
291 posts

blaueengel: It is a known issue and fix is in my TODO list.

 
Avatar
16 posts

Great, and thank you for the response. I look forward to it.

 
Avatar
291 posts

Anybody using Vista? It seems Vista IE has somekind of security “feature” which does not allow dragging images from / in IE. Is there a way around this?

Ok. It seems at some point IE has had a security update which prevents using textarea as native droptarget. Now also in my test XP machine dragging assets has stopped working with both IE7 and IE8. If anyone has knowledge of possible workaround please let me know.

 
Avatar
291 posts

IE problem introduced in some security update is now fixed. If you have an IE and you cannot drag assets to your article, update to the lates (0.4.8 at the time of writing).

 
Avatar
3 posts

Hi everyone,

I’m new to Frog CMS and php. So far I’ve found Frog fairly easy to use even with no php knowledge. I have a homepage running on a local wamp server. However I haven’t been able to get the asset manager to work properly. I have all the required plugins, image_resize works and the asset manager will upload files and create folders. It won’t display any thumbnails though. I only get an error stating my system doesn’t have jpeg support. There are a few pngs in there as well but they don’t show either. I’ve also tried disabling the “page not found” plugin. Could it be because I’m running frog on wamp? Help me please, my setup is as follows with some screenshots.

Vista x64
wammpserver 2.0i
php 5.3.0(php_gd2 enabled)
apache 2.2.11

 
Avatar
291 posts

It is possible that windows reports GD info somehow differently. Can you test following code and send me the output of it:

 print_r(gd_info());

For the broken thumbnails, even if you do not have jpg support and you upload png file it should make a png thumbnail. Is you webserver allowed to write to public/images/covers/ folder?

Can you right click on the thumbnail, and copy the full URL to thumbnail and paste it here.

 
Avatar
3 posts

Just to clarify I’m running wamp on my desktop. I realise I didn’t word it properly initially. Sorry about that and thanks for the help.

Results:

Array ( [GD Version] => bundled (2.0.34 compatible) [FreeType Support] => 1 [FreeType Linkage] => with freetype [T1Lib Support] => [GIF Read Support] => 1 [GIF Create Support] => 1 [JPEG Support] => 1 [PNG Support] => 1 [WBMP Support] => 1 [XPM Support] => [XBM Support] => 1 [JIS-mapped Japanese Font Support] => )

The blank thumbnails have urls like this:
http://localhost/F:/WEBDEV/frog/public/images/offer_img_service.64c.jpg

If I use Image Resize on its own it works. Tested the following and it made the thumbnail.

<img src="public/images/covers/pic-01.150x150c.jpg" alt="" />
 
Avatar
291 posts

So it seems Windows reports jpg support differently. JPEG Support vs JPG Support.

The broken thumbnail support might again be Windows case. Do a

print_r($_SERVER['DOCUMENT_ROOT']) 

and post it here.

 
Avatar
3 posts

It returns this: C:/wamp/www/

 
Avatar
1 posts

I’m having an issue where i upload images with the asset manager, they are placed in the asset directory, but the filepath within asset manager is shown as “http://mydomain.info/home/content/a/d/m/myusername/html/assets2/myimage.png”

instead of assets/myimage.png.

I tried a solution on page 7 of this topic, but it didn’t work. any ideas?

Thank you!
Amir

 
Avatar
291 posts

amirkhan81: Is your document root or assets directory symlinked at some point? Do a

print_r($_SERVER['DOCUMENT_ROOT']);
print_r(FROG_ROOT);
print_r(realpath(FROG_ROOT));

And post the results here.

 
Avatar
18 posts

I have the same problem as 1upart. I can’t see the images in the pages-edit-tab! (screenshot 2 of the 4 screenshots that 1upart has putted online)
But the images on the “assets”-tab I see.

 
Avatar
184 posts

There is definately a path problem as http://localhost/F:/WEBDEV/frog/public/images/ is an invalid path for a start. F:/WEBDEV/ needs to be removed from the assets manager settings or Frog settings somewhere, as I have used wamp with frog and asset manager without a problem. But then, that was using XP … not tested with Vista.

Can you confirm all your path settings for asset manager and your Frog config!?

 
Avatar
18 posts

Don’t know where the path problem occurs? It is strange that I can see the images in my ‘assets’ tab, but not in the edit page…
I have tried to play with the images url, but with no good result!

 
Avatar
2 posts

Hello,
i am a new user of frog cms and i’ve experienced the following “error” of the assets plugin on my system.

When i drag n drop a photo on the body page of the admin area to include the picture on the site i am getting the full url of the picture on the server (ex. “http://www.—-.com/assets/frouta.jpg” ).
As a result the picture doesn’t appear on the site page but just the full url.

When i include the <img src="assets/frouta.jpg" alt="" /> manually in the admin body, the page appears normal.

Please could you help me to find a way how to fix this error ?

My system is a Centos VPS with php 5.2.8 & Apache 2.0.63
frog v0.9.5, asset manager v0.9.4

Thank you

 
Avatar
291 posts

If you use Textile you have to put the url of image between two ! characters.

 
Avatar
2 posts

This solution is ok for me, but my friend (site owner) probably will forget that need to include the char. ( ! ) every time she want to add a picture with the textile filter.

Can you inform me if there is an automatically method to include this?
I’ve a novice skill on php but i am willing to give it a try.

Thank you

 
Avatar
291 posts

That is the way Textile works. It is not related with Assets plugin. However it would be possible to hack the code so ! characters get added automagically.