Home › Forums › Support › Widget Support › EasyBlog › Control Panel / PHP File Error
- This topic has 3 replies, 3 voices, and was last updated 7 years, 5 months ago by
responsive-muse.
- AuthorPosts
- June 14, 2018 at 8:49 pm #40426
AnonymousInactiveI really need your help. I have searched and searched for a good blog widget that is compatible with my web hosting, and this is as close as I have gotten. (I have had notepad++ installed way before this) I have done everything as instructed in your video, read all of your support topics and cannot solve this problem.
I am receiving this error when I type the link to the control panel (CSVEAT is the custom csvname on line 10):
PHP Warning: file_put_contents(CSVEAT.csv) [function.file-put-contents]: failed to open stream: Permission denied in D:\Inetpub\eyesacrosstexas\assets\eyesacrosstexas.php on line 61
PHP Warning: file_put_contents(CSVEAT.csv) [function.file-put-contents]: failed to open stream: Permission denied in D:\Inetpub\eyesacrosstexas\assets\eyesacrosstexas.php on line 63
PHP Warning: file_put_contents(CSVEAT.csv) [function.file-put-contents]: failed to open stream: Permission denied in D:\Inetpub\eyesacrosstexas\assets\eyesacrosstexas.php on line 65
PHP Warning: file_put_contents(CSVEAT.csv) [function.file-put-contents]: failed to open stream: Permission denied in D:\Inetpub\eyesacrosstexas\assets\eyesacrosstexas.php on line 67Keep in mind this is line 27-29 (and yes I changed the file name as well):
//Set the name of your control panel page. Leave it as it is now and your Control Panel URL will be http://eyesacrosstexas.com/assets/eyesacrosstexas.php
//If you want to change easyblog.php filename (recommended) you need to write the new name (without PHP extension) here.
$pagename=”eyesacrosstexas”;Here are what is in my PHP file when I type in what is on line 27:
$debug=false;
?>
<?php
/*CREATE CSV IF NOT EXIST*/
$file = “$csvname.csv”;
if(!is_file($file)){
$contents = ‘ID;TITLE;KEYWORDS;DESCRIPTION;IMAGE;CATEGORY;PUBLIC’;
file_put_contents($file, $contents . PHP_EOL);
$contents = ‘1512419427;This is a dummy title;360 images, adobe muse;Lorem Ipsum is simply dummy text of the printing and typesetting industry.;http://responsive-muse.com/demos/widget-easy-blog/assets/uploads/1512433833-360-image.jpg;General;1’;
file_put_contents($file, $contents . PHP_EOL, FILE_APPEND);
$contents = ‘1512419208;This is a dummy title;assets, muse;Lorem Ipsum is simply dummy text of the printing and typesetting industry.;http://responsive-muse.com/demos/widget-easy-blog/assets/uploads/1511715665-diary-968603_640.jpg;General;1’;
file_put_contents($file, $contents . PHP_EOL, FILE_APPEND);
$contents = ‘1512418790;This is a dummy title;dropbox, muse;Lorem Ipsum is simply dummy text of the printing and typesetting industry.;http://responsive-muse.com/demos/widget-easy-blog/assets/uploads/1511714560-cute-kitten.jpg;General;1’;
file_put_contents($file, $contents . PHP_EOL, FILE_APPEND);
}Here is the link to where the blog should be: http://www.eyesacrosstexas.com/blog.html
And Here is the link to my website: http://www.eyesacrosstexas.com/index.html or you can try http://www.eyesacrosstexas.com (either work)June 18, 2018 at 8:22 am #40526
responsive-museKeymasterHi Jordan,
After checking your errors and URLs everything seems to point to restrictions in your hosting.
You could try to use our default easyblog.php file to discard that your modifications are the problem, but there are 99% chances that the problem is in the hosting provider.
The main problem seems to be that you have not writting permission in the CSVEAT.csv file.
You should be able to change that file permissions using your hosting control panel.
I hope it helps!
November 7, 2018 at 1:59 pm #45317
AnonymousInactiveGood day
A great widget that I hope to eventually buy providing I can get the free version to work satisfactorily. Here are my error messages using the default easyblog.php file as provided before ANY modifying.
Upon loading the control panel page (www.classiccarracers.co.za/assets/easyblog.php)
Parse error: syntax error, unexpected ‘&’, expecting T_VARIABLE or ‘$’ in D:\hshome\medic\classiccarracers.co.za\assets\easyblog.php on line 74
foreach($content as $lineNumber => &$lineContent) {If I remove the & sign on line 74
Parse error: syntax error, unexpected ‘&’, expecting T_VARIABLE or ‘$’ in D:\hshome\medic\classiccarracers.co.za\assets\easyblog.php on line 188
foreach($content as $lineNumber => &$lineContent) {If I remove the & sign on line 188 the error does not come up as previously but instead;
Fatal error: Call to undefined function: file_put_contents() in D:\hshome\medic\classiccarracers.co.za\assets\easyblog.php on line 61
file_put_contents($file, $contents . PHP_EOL);Unable to get past this error message. The easyblog.php file does have full read/write access for testing purposes.
Any help would be appreciated.
Regards
IanNovember 12, 2018 at 12:14 pm #45450
responsive-museKeymasterHi Ian,
We have replied you regarding this issue in he other thread you opened.
Kind regards,
- AuthorPosts
- The topic ‘Control Panel / PHP File Error’ is closed to new replies.
