?
Solved

php, ckeditor

Posted on 2014-08-19
10
Medium Priority
?
195 Views
Last Modified: 2014-09-23
I have a php/MySQL cms that I built. I am using an open source wisywig editor called CKEDitor (http://doksoft.com) and their FileUpload plugin.

When I upload the image into the wisywig area - it shows the images as missing. When I view the SOURCE code, this is what I get:

<img a="" img="" is="" span="" src="<br /> <b>Warning</b>: session_start() [<a href=" style="font-family:aldrich;" test.this="" this="" />

I also have the exact same configuration on another Domain and everything works fine. I am wondering if there is a .htacess file or php.ini file that needs some kind of code or attention? I was hoping that the nature of the code (<img a="" img="" is="" span="" src="<br /> <b>Warning</b>: session_start() [<a href=" style="font-family:aldrich;" test.this="" this="" />) would be a clue to what is happening?

Please help.
0
Comment
Question by:edavo
9 Comments
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 2000 total points
ID: 40270365
There may be something of a clue in this part: <b>Warning</b>: session_start()...  That's usually followed by further explanation, such as "can't send headers," etc.

Try turning on output buffering and see if that has any effect.
http://www.php.net/manual/en/intro.outcontrol.php
0
 
LVL 9

Expert Comment

by:Rowby Goren
ID: 40272913
This is a long shot but are there settings in your version  of the editor that gives or denies permissions on uploading certain file types?
0
 

Author Comment

by:edavo
ID: 40275428
Yes - but all the file types I try to upload are included.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:edavo
ID: 40275446
Now I get this:

<img src="<br /> <b>Warning</b>: is_file() [<a href=" function.is-file'="">

Any clues...
0
 

Author Comment

by:edavo
ID: 40275521
OKAY experts - I getting close:

Here is the problem:
I have a con gig file that includes the following line of code;

$config['BaseUrl'] = 'http://moffitlake.org.s166067.gridserver.com/moffit/assets/';

THIS ALL WORKS FINE. It basically call an up lode.php file and uploads an image in the directory and places in the wisywig editor.

BUT I NEED THIS TO BE dynamic so it will work with multiple sites, so I am young to use this:

$domainid - 'moffitlake.org';
$userid - 'moffit';

$config['BaseUrl'] = 'http://'.$domainid.'.s166067.gridserver.com/'.$userid.'/assets/';

But the variables are not working  OR not being carried to the uploader.php call, I am not sure which?

ANy clues how I can get the variables to work in place of the hard coded paths???
0
 

Author Comment

by:edavo
ID: 40275526
I have a CONFIG.php file, not "con gig" sorry
0
 

Author Comment

by:edavo
ID: 40275530
$domainid = 'moffitlake.org';
$userid = 'moffit';
(sorry, I have it right in my code)

Still not recognizing variables??
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 40276264
I think you need a professional programmer to take a look at this.  All we can see here are fragments of a problem, and they are fragments with the distinct code smell of confusion about how PHP variables and strings work.  For better or worse, computer programming requires an exacting degree of precision and a depth of understanding of many layered concepts.  I don't think we can solve the problem with what we've got in evidence here, but I am sure that a professional, given hands-on access to the code and your test data set, would be able to apply understanding to the many parts that could be in play.
0
 
LVL 58

Expert Comment

by:Gary
ID: 40340493
I've requested that this question be deleted for the following reason:

The question has either no comments or not enough useful information to be called an "answer".
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month16 days, 22 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question