Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2012-02-06 02:42:48

xsporntv
Member
Registered: 2011-04-20
Posts: 139
Website

[NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

I receive this message after I click on create sitemap: 


Failed to write sitemap index file (/home2/smuttv/public_html/sitemap.xml)

Warning: file_put_contents(/home2/smuttv/public_html/sitemap.xml) [function.file-put-contents]: failed to open stream: Permission denied in /home2/smuttv/public_html/libraries/framework/file.php on line 36

Offline

#2 2012-02-06 02:54:04

THS
Member
Registered: 2012-02-02
Posts: 313
Website

Re: [NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

It would appear that you do not have write permissions for your public_html directory.  The file it references and line is: 

return (bool) file_put_contents($file, $data, LOCK_EX);

This is standard and nothing is wrong with it.  I think you need to have the directory set at 655, 755, or 666 but I would defer to others with more experience in permissions and web security.

Last edited by THS (2012-02-06 05:33:40)

Offline

#3 2012-02-06 05:19:37

ful2fun.com
Member
From: Usa
Registered: 2011-09-16
Posts: 1,048
Website

Re: [NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

See Your Sitemap Folder ANd Sitemap.xml Permissions It Should be 755 So It Can Be Written By Script.



ful2fun.co
livesexpirates.com

Offline

#4 2012-02-06 06:57:13

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

Make sure sitemap.xml, sitemap-video.xml and the folder sitemaps are writable by the user that runs the apache server (or if you use su-php then by your cpanel/ftp username). If  you just want to resolve this without even knowing which user needs access, just chmod the files to 777.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2012-02-06 15:36:44

xsporntv
Member
Registered: 2011-04-20
Posts: 139
Website

Re: [NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

Ok great!  Thanks guys.  I'll try that later tonight and post the results here.

Cheers!

Offline

#6 2012-02-07 05:45:12

xsporntv
Member
Registered: 2011-04-20
Posts: 139
Website

Re: [NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

Perfect!  It worked!  ;-)

Offline

#7 2012-07-30 07:25:48

DuttyRock
Member
Registered: 2011-11-05
Posts: 740

Re: [NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

symtab wrote:

Make sure sitemap.xml, sitemap-video.xml and the folder sitemaps are writable by the user that runs the apache server (or if you use su-php then by your cpanel/ftp username). If  you just want to resolve this without even knowing which user needs access, just chmod the files to 777.

Can't change from 755. I get "request denied"

Last edited by DuttyRock (2012-07-31 03:55:50)

Offline

#8 2012-07-31 04:13:40

xsporntv
Member
Registered: 2011-04-20
Posts: 139
Website

Re: [NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

It was support - through my hosting provider that resolved the error. 

I contacted them told them "even with chmod changed to 0777 the error still occurred"...they fixed it.

Contact support center through your hosting company and ask

Offline

#9 2012-07-31 06:45:40

DuttyRock
Member
Registered: 2011-11-05
Posts: 740

Re: [NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

Said it's not on there end.

Offline

#10 2012-07-31 14:57:58

ful2fun.com
Member
From: Usa
Registered: 2011-09-16
Posts: 1,048
Website

Re: [NOT A BUG] Cannot Create Sitemap or Video Sitemap - Errors...

Please Check the Php.in Also For Execution Time If It Is To Low It Will Show Server Error Or Login As Root  And Try to change It Will Work............





ful2fun.com
livesexpirates.com

Offline

Board footer

Powered by FluxBB