View Issue Details

IDProjectCategoryView StatusLast Update
2368Composrcorepublic2016-04-04 04:52
ReporterPDStig Assigned ToChris Graham  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Summary2368: Composr 10b5: Saving changes to a zone (NOT zone editor) results in an error
DescriptionPHP WARNING [2] is_dir() [<a href='http://php.net/manual/en/function.is-dir.php'>function.is-dir.php</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/lovinity.org/:/tmp/) in sources_custom/global3.php on line 193 (version: 10 beta5, PHP version: 5.6.19, URL: /adminzone/admin-zones/__edit)

Here is the stack trace:

Below is a stack trace revealing the state Composr was in when the error occurred. If this represents a bug in the unmodified software, you may want to check Composr website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File '/var/www/vhosts/lovinity.org/httpdocs/sources/failure.php'
Line 970
Function 'get_html_trace'
Args
File '/var/www/vhosts/lovinity.org/httpdocs/sources_custom/global2.php'
Line 903
Function '_fatal_exit'
Args
'PHP WARNING [2] is_dir() [<a href='http://php.net/manual/en/function.is-dir.php'>function.is-dir.php</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/lovinity.org/:/tmp/) in sources_custom/global3.php on line 193'
File '/var/www/vhosts/lovinity.org/httpdocs/sources/failure.php'
Line 273
Function 'fatal_exit'
Args
'PHP WARNING [2] is_dir() [<a href='http://php.net/manual/en/function.is-dir.php'>function.is-dir.php</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/lovinity.org/:/tmp/) in sources_custom/global3.php on line 193'
File '/var/www/vhosts/lovinity.org/httpdocs/sources_custom/global2.php'
Line 774
Function '_composr_error_handler'
Args
'warning'

2

'is_dir() [<a href='http://php.net/manual/en/function.is-dir.php'>function.is-dir.php</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/lovinity.org/:/tmp/)'

'sources_custom/global3.php'

193

4
Function 'composr_error_handler'
Args
2

'is_dir() [<a href='http://php.net/manual/en/function.is-dir.php'>function.is-dir.php</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/lovinity.org/:/tmp/)'

'/var/www/vhosts/lovinity.org/httpdocs/sources_custom/global3.php'

193

a:2:{s:4:"path";s:1:"/";s:5:"perms";N;}
File '/var/www/vhosts/lovinity.org/httpdocs/sources_custom/global3.php'
Line 193
Function 'is_dir'
Args
'/'
File '/var/www/vhosts/lovinity.org/httpdocs/sources_custom/zones2.php'
Line 259
Function 'fix_permissions'
Args
'/'
File '/var/www/vhosts/lovinity.org/httpdocs/sources/zones3.php'
Line 95
Function 'save_zone_base_url'
Args
'radio_theikebshow'

'http://theikebshow.lovinity.org/'
File '/var/www/vhosts/lovinity.org/httpdocs/adminzone/pages/modules/admin_zones.php'
Line 920
Function 'actual_edit_zone'
Args
'radio_theikebshow'

'The Ike B Show'

'start'

'Da Bad Boy'

'theikebshow'

0

'radio_theikebshow'

false

false

'http://theikebshow.lovinity.org/'
File '/var/www/vhosts/lovinity.org/httpdocs/adminzone/pages/modules/admin_zones.php'
Line 218
Function '__edit_zone'
Class 'Module_admin_zones'
Object O:18:"Module_admin_zones":3:{s:5:"title";O:8:"Tempcode":5:{s:18:"code_to_preexecute";a:1:{s:33:"tcpfunc_57015db759cf38.39853270_1";s:2715:"$tpl_funcs['tcpfunc_57015db759cf38.39853270_1']=$KEEP_TPL_FUNCS['tcpfunc_57015db759cf38.39853270_1']=recall_named_function('57015db759d0c2.12289347','$parameters,$cl',"extract(\$parameters,EXTR_PREFIX_ALL,'bound'); echo (isset(\$bound_ID)?(\"\\n<a id=\\\"title__\".(empty(\$bound_ID->pure_lang)?htmlspecialchars(otp(isset(\$bound_ID)?\$bound_ID:null,\"ID/SCREEN_TITLE\"),ENT_QUOTES | ENT_SUBSTITUTE,get_charset()):otp(isset(\$bound_ID)?\$bound_ID:null,\"ID/SCREEN_TITLE\")).\"\\\"></a>\\n\"):''),\n \"\\n\\n<h1 class=\\\"screen_title\\\"\",\n ((ecv_NOT(\$cl,array(),array(ecv_GET(\$cl,array(),array(\"name_set_elsewhere\"))))==\"1\")?(\" itemprop=\\\"name\\\"\"):''),\n \">\\n \",\n otp(isset(\$bound_TITLE)?\$bound_TITLE:null,\"TITLE/SCREEN_TITLE\"),\n \"\\n\\n \",\n (isset(\$bound_AWARDS)?(\"\\n \".((otp(isset(\$bound_AWARDS)?\$bound_AWARDS:null,\"AWARDS/SCREEN_TITLE\")!='')?(\"\\n \".ecv(\$cl,array(),4,\"SET\",array(\"AWARDS_TEXT\",\"\\n <h2>\".\"Award winner\".\"</h2>\\n <p class=\\\"lonely_label\\\">\".ecv(\$cl,array(),2,\"AWARDS_WON\",array(otp(isset(\$bound_AWARDS)?\$bound_AWARDS:null,\"AWARDS/SCREEN_TITLE\"))).\"

\\n
    \\n \".closure_loop(array(\"AWARDS\",'vars'=>\$parameters),array(\$parameters,\$cl),\nrecall_named_function('57015db7597a54.43447112','\$parameters,\$cl',\"extract(\\\$parameters,EXTR_PREFIX_ALL,'bound'); return \\\"\\\\n
  • \\\\n <strong>\\\".(empty(\\\$bound_AWARD_TYPE->pure_lang)?htmlspecialchars(otp(isset(\\\$bound_AWARD_TYPE)?\\\$bound_AWARD_TYPE:null,\\\"AWARD_TYPE/SCREEN_TITLE\\\"),ENT_QUOTES | ENT_SUBSTITUTE,get_charset()):otp(isset(\\\$bound_AWARD_TYPE)?\\\$bound_AWARD_TYPE:null,\\\"AWARD_TYPE/SCREEN_TITLE\\\")).\\\"</strong>\\\\n <span>\\\".ecv(\\\$cl,array(),2,\\\"AWARD_ON\\\",array(ecv_DATE(\\\$cl,array(1),array(\\\"1\\\",\\\"1\\\",\\\"1\\\",otp(isset(\\\$bound_AWARD_TIMESTAMP)?\\\$bound_AWARD_TIMESTAMP:null,\\\"AWARD_TIMESTAMP/SCREEN_TITLE\\\"))))).\\\"</span>\\\\n
  • \\\\n \\\";\")).\"\\n
\\n \")).\"\\n <a href=\\\"\".ecv_PAGE_LINK(\$cl,array(1),array(\"_SEARCH:awards\")).\"\\\"><img onmouseover=\\\"if (typeof window.activate_tooltip!='undefined') activate_tooltip(this\".\",\".\"event\".\",\".\"'\".ecv_GET(\$cl,array(2,8,1),array(\"AWARDS_TEXT\")).\"'\".\",\".\"'auto'\".\",\".\"null\".\",\".\"null\".\",\".\"false\".\",\".\"true);\\\" title=\\\"\\\" alt=\\\"\".\"Award winner\".\"\\\" src=\\\"\".\"https://lovinity.org/themes/default/images/awarded.png\".\"\\\" /></a>\\n \"):'').\"\\n \"):''),\n \"\\n</h1>\\n\\n\",\n (isset(\$bound_SUB)?(\"\\n <div class=\\\"title_tagline\\\">\\n \".otp(isset(\$bound_SUB)?\$bound_SUB:null,\"SUB/SCREEN_TITLE\").\"\\n </div>\\n\"):''),\n \"\\n\";");";}s:9:"seq_parts";a:1:{i:0;a:1:{i:0;a:5:{i:0;s:33:"tcpfunc_57015db759cf38.39853270_1";i:1;a:3:{s:5:"_GUID";s:32:"847ffbe4823eca6d2d5eac42828ee552";s:6:"AWARDS";a:0:{}s:5:"TITLE";O:8:"Tempcode":5:{s:18:"code_to_preexecute";a:1:{s:36:"do_runtime_57015db7063f54.17003096_3";s:102:"$tpl_funcs['do_runtime_57015db7063f54.17003096_3']="echo ecv(\$cl,array(),2,\"EDIT_ZONE\",array());"; ";}s:9:"seq_parts";a:1:{i:0;a:1:{i:0;a:5:{i:0;s:36:"do_runtime_57015db7063f54.17003096_3";i:1;a:0:{}i:2;i:2;i:3;s:9:"EDIT_ZONE";i:4;s:0:"";}}}s:19:"preprocessable_bits";a:0:{}s:9:"pure_lang";b:1;s:8:"codename";s:10:":container";}}i:2;i:1;i:3;s:0:"";i:4;s:0:"";}}}s:19:"preprocessable_bits";a:0:{}s:9:"pure_lang";N;s:8:"codename";s:12:"SCREEN_TITLE";}s:2:"id";N;s:14:"nice_zone_name";N;}
Type '->'
Args
File '/var/www/vhosts/lovinity.org/httpdocs/sources/zones.php'
Line 782
Function 'run'
Class 'Module_admin_zones'
Object O:18:"Module_admin_zones":3:{s:5:"title";O:8:"Tempcode":5:{s:18:"code_to_preexecute";a:1:{s:33:"tcpfunc_57015db759cf38.39853270_1";s:2715:"$tpl_funcs['tcpfunc_57015db759cf38.39853270_1']=$KEEP_TPL_FUNCS['tcpfunc_57015db759cf38.39853270_1']=recall_named_function('57015db759d0c2.12289347','$parameters,$cl',"extract(\$parameters,EXTR_PREFIX_ALL,'bound'); echo (isset(\$bound_ID)?(\"\\n<a id=\\\"title__\".(empty(\$bound_ID->pure_lang)?htmlspecialchars(otp(isset(\$bound_ID)?\$bound_ID:null,\"ID/SCREEN_TITLE\"),ENT_QUOTES | ENT_SUBSTITUTE,get_charset()):otp(isset(\$bound_ID)?\$bound_ID:null,\"ID/SCREEN_TITLE\")).\"\\\"></a>\\n\"):''),\n \"\\n\\n<h1 class=\\\"screen_title\\\"\",\n ((ecv_NOT(\$cl,array(),array(ecv_GET(\$cl,array(),array(\"name_set_elsewhere\"))))==\"1\")?(\" itemprop=\\\"name\\\"\"):''),\n \">\\n \",\n otp(isset(\$bound_TITLE)?\$bound_TITLE:null,\"TITLE/SCREEN_TITLE\"),\n \"\\n\\n \",\n (isset(\$bound_AWARDS)?(\"\\n \".((otp(isset(\$bound_AWARDS)?\$bound_AWARDS:null,\"AWARDS/SCREEN_TITLE\")!='')?(\"\\n \".ecv(\$cl,array(),4,\"SET\",array(\"AWARDS_TEXT\",\"\\n <h2>\".\"Award winner\".\"</h2>\\n <p class=\\\"lonely_label\\\">\".ecv(\$cl,array(),2,\"AWARDS_WON\",array(otp(isset(\$bound_AWARDS)?\$bound_AWARDS:null,\"AWARDS/SCREEN_TITLE\"))).\"

\\n
    \\n \".closure_loop(array(\"AWARDS\",'vars'=>\$parameters),array(\$parameters,\$cl),\nrecall_named_function('57015db7597a54.43447112','\$parameters,\$cl',\"extract(\\\$parameters,EXTR_PREFIX_ALL,'bound'); return \\\"\\\\n
  • \\\\n <strong>\\\".(empty(\\\$bound_AWARD_TYPE->pure_lang)?htmlspecialchars(otp(isset(\\\$bound_AWARD_TYPE)?\\\$bound_AWARD_TYPE:null,\\\"AWARD_TYPE/SCREEN_TITLE\\\"),ENT_QUOTES | ENT_SUBSTITUTE,get_charset()):otp(isset(\\\$bound_AWARD_TYPE)?\\\$bound_AWARD_TYPE:null,\\\"AWARD_TYPE/SCREEN_TITLE\\\")).\\\"</strong>\\\\n <span>\\\".ecv(\\\$cl,array(),2,\\\"AWARD_ON\\\",array(ecv_DATE(\\\$cl,array(1),array(\\\"1\\\",\\\"1\\\",\\\"1\\\",otp(isset(\\\$bound_AWARD_TIMESTAMP)?\\\$bound_AWARD_TIMESTAMP:null,\\\"AWARD_TIMESTAMP/SCREEN_TITLE\\\"))))).\\\"</span>\\\\n
  • \\\\n \\\";\")).\"\\n
\\n \")).\"\\n <a href=\\\"\".ecv_PAGE_LINK(\$cl,array(1),array(\"_SEARCH:awards\")).\"\\\"><img onmouseover=\\\"if (typeof window.activate_tooltip!='undefined') activate_tooltip(this\".\",\".\"event\".\",\".\"'\".ecv_GET(\$cl,array(2,8,1),array(\"AWARDS_TEXT\")).\"'\".\",\".\"'auto'\".\",\".\"null\".\",\".\"null\".\",\".\"false\".\",\".\"true);\\\" title=\\\"\\\" alt=\\\"\".\"Award winner\".\"\\\" src=\\\"\".\"https://lovinity.org/themes/default/images/awarded.png\".\"\\\" /></a>\\n \"):'').\"\\n \"):''),\n \"\\n</h1>\\n\\n\",\n (isset(\$bound_SUB)?(\"\\n <div class=\\\"title_tagline\\\">\\n \".otp(isset(\$bound_SUB)?\$bound_SUB:null,\"SUB/SCREEN_TITLE\").\"\\n </div>\\n\"):''),\n \"\\n\";");";}s:9:"seq_parts";a:1:{i:0;a:1:{i:0;a:5:{i:0;s:33:"tcpfunc_57015db759cf38.39853270_1";i:1;a:3:{s:5:"_GUID";s:32:"847ffbe4823eca6d2d5eac42828ee552";s:6:"AWARDS";a:0:{}s:5:"TITLE";O:8:"Tempcode":5:{s:18:"code_to_preexecute";a:1:{s:36:"do_runtime_57015db7063f54.17003096_3";s:102:"$tpl_funcs['do_runtime_57015db7063f54.17003096_3']="echo ecv(\$cl,array(),2,\"EDIT_ZONE\",array());"; ";}s:9:"seq_parts";a:1:{i:0;a:1:{i:0;a:5:{i:0;s:36:"do_runtime_57015db7063f54.17003096_3";i:1;a:0:{}i:2;i:2;i:3;s:9:"EDIT_ZONE";i:4;s:0:"";}}}s:19:"preprocessable_bits";a:0:{}s:9:"pure_lang";b:1;s:8:"codename";s:10:":container";}}i:2;i:1;i:3;s:0:"";i:4;s:0:"";}}}s:19:"preprocessable_bits";a:0:{}s:9:"pure_lang";N;s:8:"codename";s:12:"SCREEN_TITLE";}s:2:"id";N;s:14:"nice_zone_name";N;}
Type '->'
Args
File '/var/www/vhosts/lovinity.org/httpdocs/sources_custom/site.php'
Line 1,175
Function 'load_module_page'
Args
'adminzone/pages/modules/admin_zones.php'

'admin_zones'

Tempcode -> ...
File '/var/www/vhosts/lovinity.org/httpdocs/sources_custom/site.php'
Line 871
Function 'request_page'
Args
'admin_zones'

true

NULL

NULL

false

false

Tempcode -> ...
File '/var/www/vhosts/lovinity.org/httpdocs/adminzone/index.php'
Line 54
Function 'do_site'
Args
Parameters

csrf_token
c3d7e1798d983
zone
radio_theikebshow
label_for__title
Title
title
The Ike B Show
require__title
1
label_for__default_page
Default page
default_page
start
require__default_page
1
label_for__header_text
Header text
header_text
Da Bad Boy
require__header_text
0
label_for__theme
Theme
theme
theikebshow
require__theme
1
label_for__require_session
Require confirmed session
tick_on_form__require_session
0
require__require_session
0
label_for__base_url
Zone base URL
base_url
http://theikebshow.lovinity.org/
require__base_url
0
label_for__access_1
Access for Guests
access_1
1
tick_on_form__access_1
0
require__access_1
0
label_for__access_3
Access for Moderator
access_3
1
tick_on_form__access_3
0
require__access_3
0
label_for__access_4
Access for Super-members
access_4
1
tick_on_form__access_4
0
require__access_4
0
label_for__access_9
Access for Member
access_9
1
tick_on_form__access_9
0
require__access_9
0
label_for__access_10
Access for Probation
access_10
1
tick_on_form__access_10
0
require__access_10
0
label_for__access_11
Access for Donor
access_11
1
tick_on_form__access_11
0
require__access_11
0
label_for__new_zone
Codename
new_zone
radio_theikebshow
require__new_zone
1
label_for__delete
Delete
tick_on_form__delete
0
require__delete
0
http_referer
https://lovinity.org/adminzone/admin-zones/_edit/radio_theikebshow
Additional InformationLooks like a server issue
TagsNo tags attached.
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2016-04-03 18:29

administrator   ~3515

This is the change...

diff --git a/sources/zones2.php b/sources/zones2.php
index 10342c9..d6ffb57 100644
--- a/sources/zones2.php
+++ b/sources/zones2.php
@@ -247,8 +247,8 @@ function save_zone_base_url($zone, $base_url)
         fwrite($out, $config_file);
         @flock($out, LOCK_UN);
         fclose($out);
- sync_file($path);
- fix_permissions($path);
+ sync_file($config_path);
+ fix_permissions($config_path);
     }
 }

You have an override though.

Guest

2016-04-04 04:52

reporter   ~3521

Hmm not sure why the upgrader from beta4 to beta5 did not tell me about that. Thanks Chris!

Issue History

Date Modified Username Field Change
2016-04-03 18:17 PDStig New Issue
2016-04-03 18:27 Chris Graham Status Not Assigned => Resolved
2016-04-03 18:27 Chris Graham Resolution open => fixed
2016-04-03 18:27 Chris Graham Assigned To => Chris Graham
2016-04-03 18:29 Chris Graham Note Added: 0003515
2016-04-04 04:52 Guest Note Added: 0003521