php, ckeditor

Posted on 2014-08-19
Last Modified: 2014-09-23
I have a php/MySQL cms that I built. I am using an open source wisywig editor called CKEDitor ( 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.
Question by:edavo
    LVL 107

    Accepted Solution

    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.
    LVL 9

    Expert Comment

    by:Rowby Goren
    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?

    Author Comment

    Yes - but all the file types I try to upload are included.

    Author Comment

    Now I get this:

    <img src="<br /> <b>Warning</b>: is_file() [<a href="'="">

    Any clues...

    Author Comment

    OKAY experts - I getting close:

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

    $config['BaseUrl'] = '';

    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 - '';
    $userid - 'moffit';

    $config['BaseUrl'] = 'http://'.$domainid.''.$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???

    Author Comment

    I have a CONFIG.php file, not "con gig" sorry

    Author Comment

    $domainid = '';
    $userid = 'moffit';
    (sorry, I have it right in my code)

    Still not recognizing variables??
    LVL 107

    Expert Comment

    by:Ray Paseur
    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.
    LVL 58

    Expert Comment

    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".

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

    794 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now