HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Abstract File Management Error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#23533 (In Topic #5677)
Avatar

Fan in action

Error occurs in step 9 of Theme change

I get the following message when I click on Proceed in step 9 using the Theme Wizard.  What do I need to do to fix this, please?

 PHP WARNING [2] fopen() [<ahref='function.fopen'>function.fopen</a>]: SAFE MODERestriction in effect. The script whose uid is 11915 is not allowed toaccess /tmp/ocpafmCVWmmF owned by uid 99 (ocPortal version: 3.0.10, PHPversion: 4.4.4, URL:/adminzone/index.php?page=admin_themewizard&type=step4)

H
ere is the stack trace:

Below is a stack trace revealing the state ocPortal was in when theerror occured. If this represents a bug in ocPortal's unmodifiedsoftware, you may want to check ocportal.com for a fix, and if thereisn't one, report this as a bug. Please note that merely posting astack trace is not sufficient for us to solve your problem; the stacktrace is just an aid that presents us with additional information. Westill need to know the error message, the human situation, versionnumbers, and any other appropriate information.
We apologise for this problem and hope you will work with us so that we can fix it promptly.{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/sources/global2.php'    |-   !       Line      |       '671'    |-   !       Function      |       'get_html_trace'    |-   !       Args      |          
 </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/sources/global2.php'    |-   !       Line      |       '398'    |-   !       Function      |       'clean_exit'    |-   !       Args      |        'PHP WARNING[2] fopen() [<ahref=\'function.fopen\'>function.fopen</a>]: SAFE MODERestriction in effect. The script whose uid is 11915 is not allowed toaccess /tmp/ocpafmCVWmmF owned by uid 99'    </tbody>|}
{|   <tbody>|-   !       Function      |       'ocportal_error_handler'    |-   !       Args      |          2 'fopen() [<ahref=\'function.fopen\'>function.fopen</a>]: SAFE MODERestriction in effect. The script whose uid is 11915 is not allowed toaccess /tmp/ocpafmCVWmmF owned by uid 99'   '/www/virtual/pathways/htdocs/sources/abstract_file_manage
r.php'   466   array    </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/sources/abstract_file_ma
nager.php'    |-   !       Line      |       '466'    |-   !       Function      |       'fopen'    |-   !       Args      |          '/tmp/ocpafmCVWmmF'   'wb'    </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/sources/abstract_file_ma
nager.php'    |-   !       Line      |       '516'    |-   !       Function      |       'afm_make_file'    |-   !       Args      |          'themes/Theme2//index.html'   ''   false    </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/sources/themes2.php'    |-   !       Line      |       '1,244'    |-   !       Function      |       'afm_copy'    |-   !       Args      |          'themes/default/templates_cached/index.html'   'themes/Theme2//index.html'   false    </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/sources/themes2.php'    |-   !       Line      |       '126'    |-   !       Function      |       'actual_add_theme'    |-   !       Args      |          'Theme2'    </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/adminzone/pages/modules/
admin_themewizard.php'    |-   !       Line      |       '163'    |-   !       Function      |       'make_theme'    |-   !       Args      |          'Theme2'   '3C4870'   true   false    </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/adminzone/pages/modules/
admin_themewizard.php'    |-   !       Line      |       '65'    |-   !       Function      |       'step4'    |-   !       Class      |       'module_admin_themewizard'    |-   !       Type      |       '->'    |-   !       Args      |          
 </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/sources/zones.php'    |-   !       Line      |       '300'    |-   !       Function      |       'run'    |-   !       Class      |       'module_admin_themewizard'    |-   !       Type      |       '->'    |-   !       Args      |          
 </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/sources/site.php'    |-   !       Line      |       '639'    |-   !       Function      |       'load_module_page'    |-   !       Args      |          'adminzone/pages/modules/admin_themewizard.php'   'admin_themewizard'    </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/sources/site.php'    |-   !       Line      |       '509'    |-   !       Function      |       'request_page'    |-   !       Args      |          'admin_themewizard'   true    </tbody>|}
{|   <tbody>|-   !       File      |       '/www/virtual/pathways/htdocs/adminzone/index.php'    |-   !       Line      |       '42'    |-   !       Function      |       'do_site'    |-   !       Args      |          
 </tbody>|}
Back to the top
 
Posted
Rating:
#23546
Avatar

The server is badly configured. Please tell your server administrator that "The server is in PHP safe mode and is configured in such a way as to prevent PHP scripts creating and writing to temporary files, using the 'tempnam' function".


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: