Help us to help you!

Our aim is to offer you the best service possible, to do this we need to know: (1.) Joomla! version (2.) Server type (3.) Editor version (4.) Browsers type & Version and any (5.) Error messages you may have, for help in finding this information please - click here…We would also invite you to read our form rules before posting - read more…

Welcome, Guest
Please Login or Register.    Lost Password?

ERROR: failed to open stream
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: ERROR: failed to open stream
#503
ERROR: failed to open stream 1 Year, 7 Months ago Karma: 0
Hello all

I've installed CK editor (which is awesome) BUT need to add an additional style sheet.

So I've added the location to this file in the 'Use Custom CSS Classes?' parameter (in the CK plugin window) and now get this error:

Warning: file_get_contents(../templates/ja_senecio/css/newsletterstyles.css) [function.file-get-contents]: failed to open stream: No such file or directory in domainpathhere/html/plugins/editors/jckeditor/includes/ckeditor/stylesheet.php on line 63


I'm pretty sure that the path to the css file is correct, because otherwise i get an error saying /pathhere/newsletterstyles.css doesn't appear to be a valid file ...

Could it be a permissions issue?

Could it be a cache issue?

Please help my css file come to life.
fitzbeck
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#505
Re:ERROR: failed to open stream 1 Year, 7 Months ago Karma: 20
Hi fitzbeck,

Thank you for your post.

If you look at your error message it reports
Code:

No such file or directory
This would seam to suggest that the file path is incorrect.

We have a tutorials which should be of assistance to you, on how to configure the editor to use custom style-sheets: www.joomlackeditor.com/component/content...-to-be-a-valid-file-

Take care,


Paul
Paul.F
Administrator
Posts: 1045
graph
User Online Now Click here to see the profile of this user
Gender: Male webxsolution.com Location: London Birthday: 12/09
Last Edit: 2010/07/12 07:55 By Paul.F.
If you use JoomlaCK Editor, please post a review at the Joomla! Extensions Directory.
The administrator has disabled public write access.
 
#506
Re:ERROR: failed to open stream 1 Year, 7 Months ago Karma: 0
Hi Paul, many thanks for your reply.

I've looked at this post thanks, and followed it as described.

this path is correct i'm pretty sure: .../templates/ja_senecio/css/newsletterstyles.css

i'm assuming the second link in the error is at fault. .../html/plugins/editors/jckeditor/includes/ckeditor/stylesheet.php

i just don't know how.

thanks again
W
fitzbeck
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#507
Re:ERROR: failed to open stream 1 Year, 7 Months ago Karma: 20
Hi fitzbeck,

Thank you for your post.

I think the problem is that you have placed ../ before templates/ja_senecio/css/newsletterstyles.css and therefore the editor cannot find the path to the file. If your path is correct then it should only need be: templates/ja_senecio/css/newsletterstyles.css

In “Use Custom CSS Classes?” field place the pathway to the CSS file you want to use with the editor (It will normal look something like this: templates/yourtemplatename/css/cssfile.css) and press Save.


Take care,



Paul
Paul.F
Administrator
Posts: 1045
graph
User Online Now Click here to see the profile of this user
Gender: Male webxsolution.com Location: London Birthday: 12/09
Last Edit: 2010/07/12 14:18 By Paul.F.
If you use JoomlaCK Editor, please post a review at the Joomla! Extensions Directory.
The administrator has disabled public write access.
 
#509
Re:ERROR: failed to open stream 1 Year, 7 Months ago Karma: 0
thanks Paul

sorry for the confusion but in the last post the path is marked .../blahblah rather than ../blahblah

which was my way of indicating the full path had been truncated. I'm not sure how wise/safe it would be to post the full error path here.

So the path entered in the plugin window is: templates/ja_senecio/css/newsletterstyles.css


It would be good to solve this but in the meantime i've just got around the issue by added the styles i need to the core template css ...

FYI - the reason i'm trying to link the second style sheet is so that when a newletter (using ACAJOOM) is created i can change the styles from the website css to the newsletter css by selecting the appropriate style sheet.

I'll post a solution if i find one.
fitzbeck
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#511
Re:ERROR: failed to open stream 1 Year, 7 Months ago Karma: 20
Paul.F
Administrator
Posts: 1045
graph
User Online Now Click here to see the profile of this user
Gender: Male webxsolution.com Location: London Birthday: 12/09
If you use JoomlaCK Editor, please post a review at the Joomla! Extensions Directory.
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Paul.F, awills