Author Topic: Image browser/file browser not displaying  (Read 1551 times)

nm51ml

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Image browser/file browser not displaying
« on: August 28, 2009, 02:17:13 PM »
First off thanks for this CMS.  It is exactly what I want from a CMS. And its fooking brilliant. nuff said.

I am moving from 1.3.1 to 1.3.2 and this has resolved many issues for me.  Only problem now is that the image browse dialog won't appear (javascript:openbrowser).  All my paths seem ok and same with permissions.  I can't find any other posts about this issue which makes me think that it's something I've changed but all I have done is copy content/ and img/ (excluding base.css) from my old site to the new one.  Any ideas any one?

UPDATE:

I have installed a fresh copy onto another virtual host and still the same issue.  So possibly permissions but i'm stumped.  try it out at buffalosoldier{dot}benchmarkgeo{dot}com{forwardyslashy}admin
« Last Edit: August 28, 2009, 02:45:53 PM by nm51ml »

Xander

  • Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 240
  • Karma: +5/-0
    • View Profile
    • CompactCMS.nl
Re: Image browser/file browser not displaying
« Reply #1 on: August 28, 2009, 02:42:47 PM »
Truth be told and as you indicated: I haven't heard of this issue yet. I assume you checked whether another installation does work (e.g. the demo). If that does work it has to be something on your server. Since 1.3.2 there is a new image browser, which might explain why its causing problems in the first place.

Since it's unclear from your description what it could possible be, it might be best if I can take a look at the live site. If it's online somewhere consider either posting the link or sending me a message containing the link.

I like the way you formulated updating by the way :). There isn't really anything else to it than uploading the new package and overwrite the default content, template and images with your old one. Don't forget that tags have changed in 1.3.2 and that you should also update your database structure.

Cheers!
Xander.
Don't ever hold back your suggestions. Help me either to improve CompactCMS or spread the word about it on sites such as Twitter, Digg, StumbleUpon, etc :). Thanks!

youcantryreachingme

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +1/-0
    • View Profile
Re: Image browser/file browser not displaying
« Reply #2 on: August 28, 2009, 02:46:25 PM »
Also, maybe list the steps to produce the problem. For example, is it failing when you first click the icon in the toolbar for inserting the image into the page? Or do you get past that screen and then attempt to browse your PC in order to upload a new image, but it's failing at this later step? (Or something else)?

Chris.

nm51ml

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Image browser/file browser not displaying
« Reply #3 on: August 28, 2009, 02:48:26 PM »
Thanks for the reply, iv updated my original post with the address.  I've used a blank install to eliminate problems due to upgrade but alas the issue remains!

Also, maybe list the steps to produce the problem. For example, is it failing when you first click the icon in the toolbar for inserting the image into the page? Or do you get past that screen and then attempt to browse your PC in order to upload a new image, but it's failing at this later step? (Or something else)?

The steps would be 1)open the editor 2) add image or media 3) click the browse icon 4) ... nope nothing happens. not even a flicker.

Thanks again
Michael

Ps when I upgraded I manually added the new fields to my old database and imported it into the new site.  Seemed to work just fine :)
Pps the demo site works perfect  :'(
« Last Edit: August 28, 2009, 02:56:15 PM by nm51ml »

youcantryreachingme

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +1/-0
    • View Profile
Re: Image browser/file browser not displaying
« Reply #4 on: August 28, 2009, 03:12:09 PM »
Do you have multiple windows open? It's possible the file browser is being loaded into another window from your browser session, but the system is not giving focus to that window.

This is going to sound silly, but... try closing your browser and re-opening then trying again?  :-\

Chris.

nm51ml

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Image browser/file browser not displaying
« Reply #5 on: August 28, 2009, 03:15:47 PM »
Good suggestion but i've tried on different machines, OSes and browsers each with the same result. and the demo site works perfectly.  I've just checked again and it isn't opening up in a different window (i'm glad cos boy wud I look stoopid :))

Xander - what settings on the server would affect it? I've tried changing php safe mode, register globals, php acceleration, etc but it doesn't help.  My host is servage.net.
« Last Edit: August 28, 2009, 03:18:06 PM by nm51ml »

Xander

  • Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 240
  • Karma: +5/-0
    • View Profile
    • CompactCMS.nl
Re: Image browser/file browser not displaying
« Reply #6 on: August 28, 2009, 03:19:47 PM »
Ha... It are the things like these that keep maintaining CCMS a unique experience ;). I've seen the error on your site (u is undefine (Javascript error)). I was able to reproduce this error by removing the following line from ./admin/editor.php

Code: [Select]
<script type="text/javascript" src="includes/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php"></script>

So something appears to go wrong with including this file (which defines the necessary u). It goes without saying that it seems very strange that one server has trouble with this and another has not.

1) First thing I'm going to ask you is to open ./admin/includes/tiny_mce/plugins/tinybrowser/config_tinybrowser.php
2) Then find the line saying set_time_limit(240); and disable it. E.g. replace it with //set_time_limit(240);
3) Save, upload and check again.

If this doesn't work, try replacing the include line mentioned in the code box above to directly under this line: <script type="text/javascript" src="includes/tiny_mce/tiny_mce_gzip.js"></script>

Let me know whether this changes things, and if not: keep the changes online so we can see how it has affected error reporting.

Cheers,
Xander.
Don't ever hold back your suggestions. Help me either to improve CompactCMS or spread the word about it on sites such as Twitter, Digg, StumbleUpon, etc :). Thanks!

nm51ml

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Image browser/file browser not displaying
« Reply #7 on: August 28, 2009, 03:53:05 PM »
You genius, commenting out that line worked  8)

... Oh dear however on my updated site it opens the browser window but it's blank. I have to go to work now but I'll continue on this when I return!

Many many thanks
Michael

youcantryreachingme

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +1/-0
    • View Profile
Re: Image browser/file browser not displaying
« Reply #8 on: August 29, 2009, 02:43:41 AM »
Xander,

could it be that by installing to some sort of subdirectory, the relative URL for the file is not being resolved?

Chris.

Xander

  • Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 240
  • Karma: +5/-0
    • View Profile
    • CompactCMS.nl
Re: Image browser/file browser not displaying
« Reply #9 on: August 29, 2009, 04:40:39 PM »
Actually I don't think so. Most - if not all - paths that I coded inside CCMS are relative paths (not absolute). So e.g.: from within the ./admin/index.php file I point to the configuration by referring to ../lib/config.inc.php. No matter where your files are situated: this will always hold (if the structure remains the same).

What caused this error is probably a safe_mode restriction. So if other similar errors come in I'll disable the suggested line by default. Until that time I think (I've tested it at Michaels' server) we've solved this issue.

Cheers,
Xander.
Don't ever hold back your suggestions. Help me either to improve CompactCMS or spread the word about it on sites such as Twitter, Digg, StumbleUpon, etc :). Thanks!

nm51ml

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Image browser/file browser not displaying
« Reply #10 on: August 30, 2009, 10:06:17 PM »
Yup I can confirm this has fixed it. Thanks  buster!