Solved

Not creating pages

Posted on 2014-12-09
4
39 Views
Last Modified: 2015-03-07
I moved a female modeling website from one server to another same type of server running Apache etc. The site looks and runs fine on display but on the backend control panel I am unable to create a page. The backend is set up so you can make a page of each model and add images. These are the error messages I am getting in the log files any help would be appreciated. Let me elaborate more when you go to create a model entry it will actually save the entry in the control panel but when you go to the display end and  click on the link to display the models page there is no page. If I check the server files there is no paged created. So the my big problem is....... it is saving the data but not creating the page on the server.

Thanks,
Phil


[Sun Dec 07 20:25:09 2014] [error] [client 61.12.45.30] PHP Warning: fopen(//template/model_page.tpl) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /var/www/vhosts/my.com/httpdocs/page_create/create_model_style.php on line 93, referer: http://my.com/admin/admin_model.php
[Sun Dec 07 20:25:09 2014] [error] [client 61.12.45.30] PHP Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for //template/model_page.tpl in /var/www/vhosts/my.com/httpdocs/page_create/create_model_style.php on line 94, referer: http://my.com/admin/admin_model.php
[Sun Dec 07 20:25:09 2014] [error] [client 61.12.45.30] PHP Warning: fread(): supplied argument is not a valid stream resource in /var/www/vhosts/my.com/httpdocs/page_create/create_model_style.php on line 94, referer: http://my.com/admin/admin_model.php
[Sun Dec 07 20:25:09 2014] [error] [client 61.12.45.30] PHP Warning: fopen(//Abigail.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /var/www/vhosts/my.com/httpdocs/page_create/create_model_style.php on line 96, referer: http://my.com/admin/admin_model.php
[Sun Dec 07 20:25:09 2014] [error] [client 61.12.45.30] PHP Warning: fclose(): supplied argument is not a valid stream resource in /var/www/vhosts/my.com/httpdocs/page_create/create_model_style.php on line 320, referer: http://my.com/admin/admin_model.php
===

Open in new window

0
Comment
Question by:smphil
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
Marco Gasi earned 500 total points
ID: 40488949
This looks like a permission issue: be sure your backend page have write permissions in the folder where the pages have to be created in.
0
 
LVL 17

Expert Comment

by:Chris Harte
ID: 40488977
failed to open stream: Permission denied in

Check your paths and permissions on the server directories/files
0
 
LVL 1

Author Comment

by:smphil
ID: 40489010
Marco it looks like the pages are all being created into the main directory so now I need to give the main directory write privileges is nt this a security risk?
0
 
LVL 31

Assisted Solution

by:Marco Gasi
Marco Gasi earned 500 total points
ID: 40489057
Yes, it is. You should putt all those file in a directory out of the public document root and change accordingly your script.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Could you point a way to obtain a specifically  DateInterval Object value? 2 21
PHP Curl to output a url 7 47
Correct syntax for subdirectories 9 18
Ajax and PHP 4 29
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

840 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