Solved

Not creating pages

Posted on 2014-12-09
4
35 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 30

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 16

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 30

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

706 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

19 Experts available now in Live!

Get 1:1 Help Now