close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Php headers error - power store images

Thread began 12/18/2013 11:29 am by anonymous | Last modified 12/19/2013 6:39 pm by anonymous | 3520 views | 12 replies |

anonymous

Php headers error - power store images

Hi,
I am getting a php error when trying to change images, I recently changed host, is this a php newer version issue, how to fix:


This is the message I get when i go to work with the images for making changes in the graphics on the site:

Strict Standards: Redefining already defined constructor for class kfmSession in /home/luna1078/public_html/webassist/kfm/classes/kfmSession.php on line 58

Warning: Cannot modify header information - headers already sent by (output started at /home/luna1078/public_html/webassist/kfm/classes/kfmSession.php:58) in /home/luna1078/public_html/webassist/kfm/classes/kfmSession.php on line56

Warning: Cannot modify header information - headers already sent by (output started at /home/luna1078/public_html/webassist/kfm/classes/kfmSession.php:58) in /home/luna1078/public_html/webassist/kfm/index.php on line 117
Please Wait - loading...

Many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

this is because the server has strict error reporting enabled. you should be able to talk to the host and have them set the error reporting level to not include strict errors.

or you can edit the webassist/kfm/classes/kfmSession.php file, and change line 58 - 60:


function __construct($key=''){
$this->kfmSession($key);
}



to:

if (!function_exists("__construct")) {
function __construct($key=''){
$this->kfmSession($key);
}
}
Sign in to reply to this post

anonymous

Hi Jason - I now get:

Parse error: syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) in /home/luna1078/public_html/webassist/kfm/classes/kfmSession.php on line 61


this is what I pasted:

if (!function_exists("__construct")) {
function __construct($key=''){
$this->kfmSession($key);
}
}

I have attached the php file.

Attached Files
kfmsession.php
Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

anonymous

private message and logon sent

Sign in to reply to this post

Jason ByrnesWebAssist

see PM

Sign in to reply to this post

anonymous

see PM

Sign in to reply to this post

Jason ByrnesWebAssist

ok, glad to hear it is working now.

Sign in to reply to this post

anonymous

Hi Jason - ok when i edit the kfmSession.php file and do the change you suggested a new error occurs - - Parse error: syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) in /home/luna1078/public_html/webassist/kfm/classes/kfmSession.php on line 61

Sign in to reply to this post

Jason ByrnesWebAssist

that change is only needed if you are getting the Strict Standards: Redefining already defined constructor for class kfmSession in /home/luna1078/public_html/webassist/kfm/classes/kfmSession.php on line 58 error you reported yesterday. I thought you said that error was not occurring any more?

Sign in to reply to this post
loading

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