smphil
asked on
Not creating pages
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
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
===
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Check your paths and permissions on the server directories/files