1
exbanious
wysiwyg news patch on IIS 5
  • 2004/6/26 4:09

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


i cannot seem to get the wysiwyg patch v1.0 for the news module to work correctly on IIS 5 / Win 2000 Server. I had no problem getting it to work on Apache though. The site is identical on both systems. I had read about an "admin/admin" issue, so for the hell of it, i copied the admin folder inside of itself just to get the images to come up, but when i go to add an image or a table, i get the following error:

Quote:


Warning: main(../../../../mainfile.php): failed to open stream: no such file or directory in
c:\inetpub\wwwroot\modules\news\admin\admin\spaw\config\spaw_control.config.php
on line 23

Warning: main(): failed opening'../../../../mainfile.php' for inclusion(include_path-'.c;\php4\pear') in
c:\inetpub\wwwroot\modules\news\admin\admin\spaw\config\spaw_control.config.php
on line 23

Fatal error: Call to a member function on a non-object in
c:\inetpub\wwwroot\modules\news\admin\admin\spaw\config\spaw_control.config.php
on line 78


i was looking through the code, but i can't seem to find where the problem is, and given that it worked fine on Apache, i assume its something with IIS.
Hopefully there is some way around it.
i have the mainfile and news module wide open as far as shares are concerned.
i am running 2.0.6, formally 2.0.7, thinkng the problem might be there, but apparently that is not the case.
any suggestions would be most helpful.

thanks




2
Mithrandir
Re: wysiwyg news patch on IIS 5

Quote:
modules\news\admin\admin\spaw\

My guess is that you should only have ONE admin subfolder, not two.

so try moving it one folder up to
modulesnewsadminspaw

3
exbanious
Re: wysiwyg news patch on IIS 5
  • 2004/6/28 22:16

  • exbanious

  • Not too shy to talk

  • Posts: 113

  • Since: 2004/5/30


thanks for the reply.
i found the problem, but, i'm not sure why it was a problem in IIS only. in "spaw_control.config" i changed

Quote:
// directory where spaw files are located
if (substr_count($HTTP_SERVER_VARS["SCRIPT_FILENAME"],"admin") == 1) {
// Administration
include '../../../../../mainfile.php';
$spaw_dir = 'spaw/';
} else {
// User Submit
include '../../../../mainfile.php';
$spaw_dir = 'admin/spaw/';
}

to
Quote:
// directory where spaw files are located
if (substr_count($HTTP_SERVER_VARS["SCRIPT_NAME"],"admin") == 1) {
// Administration
include '../../../../../mainfile.php';
$spaw_dir = 'spaw/';
} else {
// User Submit
include '../../../../../mainfile.php';
$spaw_dir = 'spaw/';
}


and everything worked fine.

one more question, does anybody have have an idea how to incorporate
the myalbum version of imagemanager into the wysiwyg editor?
i tried messing with the database settings in "img_library"
and i could ge that to work as far as calling the images from myalbum , but i'm more interested in
the thumbnail placement that myalbum's imagemanager
has incorporated.

4
GIJOE
Re: wysiwyg news patch on IIS 5
  • 2004/6/29 8:08

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


Quote:

exbanious wrote:
one more question, does anybody have have an idea how to incorporate
the myalbum version of imagemanager into the wysiwyg editor?
i tried messing with the database settings in "img_library"
and i could ge that to work as far as calling the images from myalbum , but i'm more interested in
the thumbnail placement that myalbum's imagemanager
has incorporated.

It has already been on my TODO list

Since SPAW is not so small, I have to make a SPAW with ImageManager integration of myAlbum-P as a module.
Of course, Its idea and codes are based on Catzwolf.

Login

Who's Online

249 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 249


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits