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.


Create and editing new zones

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#49199 (In Topic #10726)

Honoured member

Ok, I know I've just missed something in the tutorial.

Hi,
I know I have to be just missing something.  I created a new zone. (Piece of cake.)  Create the new menu for my new zone, (again piece of cake.)  Open my new zone in the zone editor, and started created my right panel.  When I try to inersert a dynamic blcok, I get errors.  If I try to create a zonejump, I just an 500 error, and if I try to include a  side forum block,I get an error message about a mile long.  What am I missing here.  I've looked in the tutorial, and did an extensive search in the forums, but can't seem to find what I'm doing wrong.  Do I have to manually copy the blcoks from my site zone over to my new zone directory?  Here's the error I'm getting.

Code

An error has occurred
PHP NOTICE [8] Undefined variable: save_lang (version: 4.1.8, PHP version: 5.2.6,
URL: /adminzone/index.php?page=admin_zones&type=__editor&redirect=http%3A%2F%2Ffsfa.us%2Falabama%2Findex.php%3Fpage%3Dstart&id=alabama)
Here is the stack trace:
Below is a stack trace revealing the state the software was in when the error occurred.
If this represents a bug in the unmodified software, you may want to check ocPortal
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
'/home/fsfa/public_html/sources/failure.php'
Line
'224'
Function
'get_html_trace'
Args
File
'/home/fsfa/public_html/sources/global2.php'
Line
'829'
Function
'_fatal_exit'
Args
'PHP NOTICE [8] Undefined variable: save_lang'
File
'/home/fsfa/public_html/sources/global2.php'
Line
'698'
Function
'fatal_exit'
Args
'PHP NOTICE [8] Undefined variable: save_lang'
File
'/home/fsfa/public_html/adminzone/pages/modules/admin_zones.php'
Line
'284'
Function
'ocportal_error_handler'
Args
8
'Undefined variable: save_lang'
'/home/fsfa/public_html/adminzone/pages/modules/admin_zones.php'
284
array ( 'title' => ocp_tempcode::__set_state(array( 'code_to_preexecute' => 'if (($result=@include(\'/home/fsfa/public_html/themes/default/templates_cached/EN/SCREEN_TITLE.tcp\'))===false)
{ $tmp=do_template(\'SCREEN_TITLE\',NULL,\'EN\',false,\'\',\'.tpl\',\'templates\');
eval($tmp->code_to_preexecute); unset($tmp); } else { eval($result[5]); unset($result);
}/*SHIFT_ENCODE*/', 'seq_parts' => array ( 0 => array ( 0 => 'tcpfunc_SCREEN_TITLE',
1 => array ( '_GUID' => '847ffbe4823eca6d2d5eac42828ee552', 'TITLE' => ocp_tempcode::__set_state(array(
'code_to_preexecute' => 'if (!isset($TPL_FUNCS[\'do_runtime_1236097620e7be1683\']))
$TPL_FUNCS[\'do_runtime_1236097620e7be1683\']="extract(\\$parameters,EXTR_PREFIX_ALL,\'bound\');
echo evaluate_conventional_variable(\\$current_lang,array(),2,\\"ZONE_EDITOR\\",\\$parameters);";
', 'seq_parts' => array ( 0 => array ( 0 => 'do_runtime_1236097620e7be1683', 1 =>
array ( ), 2 => 2, 3 => 'ZONE_EDITOR', 4 => '', ), ), 'preprocessable_bits' => array
( ), 'last_attach' => NULL, 'pure_lang' => true, 'codename' => ':container', 'cached_output'
=> 'Zone Editor', )), 'HELP_URL' => '', 'HELP_TERM' => 'ZONE_EDITOR', ), 2 => 1,
3 => '', 4 => '', ), ), 'preprocessable_bits' => array ( 0 => array ( 0 => array
( ), 1 => 0, 2 => 'SET', 3 => array ( 0 => 'done_first_title', 1 => '_true', ), ),
), 'last_attach' => NULL, 'pure_lang' => NULL, 'codename' => 'SCREEN_TITLE', 'cached_output'
=> ' <h1 class="main_page_title">Zone Editor</h1> ', )), 'id' => 'alabama', '_title'
=> 'Alabama', 'default_page' => 'start', 'header_text' => 'Alabama', 'theme' => '-1',
'wide' => 0, 'require_session' => 0, 'displayed_in_menu' => 0, 'for' => 'panel_right',
'comcode' => ' [block param="6" forum="19" date_key="lasttime" title="Alabama Annoucements"]side_forum_news[/block]',
'caches' => array ( 0 => array ( 'string_index' => 37646, ), ), 'cache' => array
( 'string_index' => 37646, ), 'zone_save_details' => false, )
File
'/home/fsfa/public_html/adminzone/pages/modules/admin_zones.php'
Line
'84'
Function
'__editor'
Class
'Module_admin_zones'
Object
Module_admin_zones::__set_state(array( ))
Type
'->'
Args
File
'/home/fsfa/public_html/sources/zones.php'
Line
'310'
Function
'run'
Class
'Module_admin_zones'
Object
Module_admin_zones::__set_state(array( ))
Type
'->'
Args
File
'/home/fsfa/public_html/sources/site.php'
Line
'805'
Function
'load_module_page'
Args
'adminzone/pages/modules/admin_zones.php'
'admin_zones'
File
'/home/fsfa/public_html/sources/site.php'
Line
'637'
Function
'request_page'
Args
'admin_zones'
true
File
'/home/fsfa/public_html/adminzone/index.php'
Line
'51'
Function
'do_site'
Args
Back to the top
 
Posted
Rating:
#49200
Avatar

Does the attached replacement for adminzone/pages/modules/admin_zones.php fix the second problem?

Attachment
» Download: admin_zones.php (21 Kb, 154 downloads so far)


I'll look into the first one soon.


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
 
Posted
Rating:
#49201

Honoured member

Hi Chris,
I copied the files from the site zone over to my new zone, and all the errors stopped.  Is that what the aminzone.php file you attached will do?

Ok, I notice that the url in the forum link is mysite/forums but catalogues and cedi are mysite/site/index.php?catalogues and mysite/site/index.php?cedi does this mean I can have different catalogues and cedi pages for each zone, but share common forums?
Back to the top
 
Posted
Rating:
#49210

Honoured member

Chris Graham said

Does the attached replacement for adminzone/pages/modules/admin_zones.php fix the second problem?

Attachment
» Download: admin_zones.php (21 Kb, 154 downloads so far)


I'll look into the first one soon.

Nope.  I still have to manually copy the files from my site zone over to the new zone.  However, once I do all the errors go away.


Last edit: by chipster
Back to the top
 
Posted
Rating:
#49286
Avatar

Hi,

It seems to be two separate problems.

The file I attached fixes a very specific bug introduced in a recent patch release (we fixed something, but accidentally broke this!). The bug happens when saving in the zone editor.

The other problem I am investigating now and probably only happens on certain servers.

Ok, I notice that the url in the forum link is mysite/forums but catalogues and cedi are mysite/site/index.php?catalogues and mysite/site/index.php?cedi does this mean I can have different catalogues and cedi pages for each zone, but share common forums?

Nope. The forums are powered by 3 modules: topicview, forumview, and topics. These all reside in the forum zone.
Most other systems work through a single module (well, and a CMS module) that sits in the site zone.

Zones don't share modules at all, unless you set up a 'transparent redirect' to force them to. For example you can make a new zone have downloads by putting a transparent redirect from newzone:downloads to site:downloads. That basically ties in the module to a new zone.

Nope.  I still have to manually copy the files from my site zone over to the new zone.  However, once I do all the errors go away.

Best not to copy modules, it is very likely to cause problems elsewhere - particularly in the sitemap, site tree editor, and menu editor. Instead use redirects :).



Anyway, I am looking into the 500 problem right now on your site.


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
 
Posted
Rating:
#49288
Avatar

Hi,

I've had a look now, and you had lots of 'core dump' files on your hosting. These appear when something crashes, although not all servers keep them.
Some of the core dump files corresponded to a bug which I fixed already, but others were unrelated. I analysed them and they look like PHP was just crashing for no particular reason for a time. It might be the server admin was doing something at the time.
Anyway, I've got rid of the core dump files for you because they really eat into your hosting quota, and they aren't any real use other than to programmers.

I've gone in and tested adding a zone jump block. I didn't save, but I did a 'preview' both in the 'Add block' tool, and in the main Zone editor window. This was in your 'alabama' zone. It worked both times.

So I'm putting two-and-two together and I think the previous problems were a temporary problem on the server now resolved.

If there is a problem still occurring please let me know reproduction steps.


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
 
Posted
Rating:
#49333

Honoured member

Thanks Chris.  I see those Core files you mention.  I had another 15 or so of them since you deleted the ones you deleted.  I have no clue why php keeps crashing on my server, but I've complained and complained to my host, and theykeep saying there's nothing wrong on their end.  Obviously there is though because every site I have that uses php and mysql has issues loading.  It may be time for me to be looking for a different host, but geez moving 19 sites is not something I'm looking forward to.


Last edit: by chipster
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: