close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

image editing error

Thread began 4/27/2010 3:43 pm by Stan.Shaw269802 | Last modified 5/11/2010 10:46 am by Jason Byrnes | 2132 views | 7 replies |

Stan.Shaw269802

image editing error

When a user attempts to edit an image at the URL "HTMLEditor/editor/plugins/kfm/index.php?lang=default&kfm_caller_type=fck&type=Image" an error message is displayed "PHP Notice: Undefined index: REQUEST_URI in HTMLEditor\editor\plugins\kfm\plugins\cropper\croparea.php on line 34"

What needs to be done to correct this?

*note - I have removed the beginning of each URL above to what the generic URL would be.

Sign in to reply to this post

Jason ByrnesWebAssist

what version of PHP are you running?

Are you hosting on IIS or apache?


Try adding the following at line 1 of the page you have applied HTML editor to:

php:
<?php $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],0); ?>
Sign in to reply to this post

Stan.Shaw269802

Originally Said By: Jason Byrnes
  what version of PHP are you running?

Are you hosting on IIS or apache?


Try adding the following at line 1 of the page you have applied HTML editor to:
php:
<?php $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],0); ?>
  




PHP Version 5.2.12
IIS 6

Sorry, don't understand "page you have applied HTML editor to"
The intent here is to edit an image, do you mean the page the image is in?

Sign in to reply to this post

Jason ByrnesWebAssist

I mean the page you go to that has the html editor instance on it.

The page with the html editor text area that has the image icon in the tool bar used to launch the HTML Editor image editing window.

Sign in to reply to this post

Stan.Shaw269802

I added the line to the page: contents_update.php is that what you are asking be done?

The result was the same when I clicked on an image and select "crop image"
PHP Notice: Undefined index: REQUEST_URI in ...\HTMLEditor\editor\plugins\kfm\plugins\cropper\croparea.php on line 34

Sign in to reply to this post

Jason ByrnesWebAssist

ok, try adding that line to the HTMLEditor\editor\plugins\kfm\plugins\cropper\ croparea.php page instead.

Sign in to reply to this post

Stan.Shaw269802

Ok, that seems to have eliminated the error message but necessarily resolved the issue.

When I attempt to crop a photo, the page to do so opens with the image X (the standard way of showing an image can not be displayed).

An attempt to view an image results in the same red x box as above.

Resizing an image appears to do so correctly, as I did so and viewed it outside of Power CMS.

Is it possible there is a simple solution to all of these issues?
Are these commonly used functions?

Sign in to reply to this post

Jason ByrnesWebAssist

I think the issue is that you are using windows hosting that is not defining the REQUEST_URI server variable.

maybe try using this code instead:

php:
<?php

if (!isset($_SERVER['REQUEST_URI']))
{
       
$_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],);
       if (isset(
$_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING']; }
}
?>
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...