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.


Error uploading emotions in a ZIP

Login / Search

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

Well-settled

Hi, I have all my emotions in a ZIP folder, I select it for upload and I get a error:

I've uploaded the same ZIP folder before but I had to move files and emotions got lost.

An error has occurred

PHP WARNING [2] Class constants cannot be defined or redefined in /home/wwwteena/public_html/Registered/sources/global.php(249) : eval()'d code on line 35 (version: 7.1.1, PHP version: 5.2.17, URL: /Registered/adminzone/index.php?page=admin_ocf_emoticons&type=_import&uploading=1&keep_show_parse_errors=1)

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/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'
Line'669'
Function'get_html_trace'
Args 

File'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'
Line'936'
Function'_fatal_exit'
Args'PHP WARNING [2] Class constants cannot be defined or redefined in /home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code on line 35'


File'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'
Line'209'
Function'fatal_exit'
Args'PHP WARNING [2] Class constants cannot be defined or redefined in /home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code on line 35'


File'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'
Line'810'
Function'_ocportal_error_handler'
Args'warning'

2

'Class constants cannot be defined or redefined'

'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'

35


Function'ocportal_error_handler'
Args2

'Class constants cannot be defined or redefined'

'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'

35

array ( 'ud' => '/tmp', )


File'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'
Line'35'
Function'define'
Args'ZIPARCHIVE::ZIP_ER_OK'

0


Function'init__m_zip'
Args 

File'/home/wwwteena/public_html/Registered/sources/global.php'
Line'269'
Function'call_user_func'
Args'init__m_zip'


File'/home/wwwteena/public_html/Registered/sources/global.php(218) : eval()\'d code'
Line'174'
Function'require_code'
Args'm_zip'


File'/home/wwwteena/public_html/Registered/sources/global.php(218) : eval()\'d code'
Line'92'
Function'_import'
Class'Module_admin_ocf_emoticons'
ObjectModule_admin_ocf_emoticons::__set_state(array( 'lang_type' => 'EMOTICON', 'select_name' => 'EMOTICON', 'orderer' => 'e_code', 'array_key' => 'e_code', 'title_is_multi_lang' => false, 'non_integer_id' => true, 'javascript' => 'standardAlternateFields(\'file\',\'theme_img_code*\');', 'possibly_some_kind_of_upload' => true, 'do_preview' => NULL, 'menu_label' => 'EMOTICONS', 'module_type' => 'f_emoticons', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_require' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'award_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'table_prefix' => '', 'table' => NULL, ))
Type'->'
Args 

File'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'
Line'188'
Function'run_start'
Class'Module_admin_ocf_emoticons'
ObjectModule_admin_ocf_emoticons::__set_state(array( 'lang_type' => 'EMOTICON', 'select_name' => 'EMOTICON', 'orderer' => 'e_code', 'array_key' => 'e_code', 'title_is_multi_lang' => false, 'non_integer_id' => true, 'javascript' => 'standardAlternateFields(\'file\',\'theme_img_code*\');', 'possibly_some_kind_of_upload' => true, 'do_preview' => NULL, 'menu_label' => 'EMOTICONS', 'module_type' => 'f_emoticons', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_require' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'award_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'table_prefix' => '', 'table' => NULL, ))
Type'->'
Args'_import'


File'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'
Line'387'
Function'run'
Class'standard_aed_module'
ObjectModule_admin_ocf_emoticons::__set_state(array( 'lang_type' => 'EMOTICON', 'select_name' => 'EMOTICON', 'orderer' => 'e_code', 'array_key' => 'e_code', 'title_is_multi_lang' => false, 'non_integer_id' => true, 'javascript' => 'standardAlternateFields(\'file\',\'theme_img_code*\');', 'possibly_some_kind_of_upload' => true, 'do_preview' => NULL, 'menu_label' => 'EMOTICONS', 'module_type' => 'f_emoticons', 'redirect_type' => NULL, 'code_require' => NULL, 'javascript_require' => NULL, 'skip_validation' => false, 'default_type' => 'misc', 'author' => 'Chris Graham', 'organisation' => 'ocProducts', 'user_facing' => false, 'send_validation_request' => true, 'check_validation' => true, 'archive_entry_point' => NULL, 'archive_label' => NULL, 'view_entry_point' => NULL, 'protect_first' => 0, 'permission_page' => NULL, 'permission_module' => NULL, 'permissions_require' => NULL, 'permissions_cat_require' => NULL, 'permissions_cat_name' => NULL, 'permissions_cat_require_b' => NULL, 'permissions_cat_name_b' => NULL, 'add_text' => '', 'edit_text' => '', 'extra_donext_entries' => NULL, 'extra_donext_categories' => NULL, 'extra_donext_whatever' => NULL, 'extra_donext_whatever_title' => NULL, 'do_next_editing_categories' => false, 'special_edit_frontend' => false, 'upload' => NULL, 'cat_aed_module' => NULL, 'alt_aed_module' => NULL, 'seo_type' => NULL, 'award_type' => NULL, 'posting_form_title' => NULL, 'posting_form_text' => '', 'posting_form_text_parsed' => NULL, 'type_code' => 'd', 'catalogue' => false, 'output_of_action_is_confirmation' => false, 'second_stage_preview' => false, 'add_submit_name' => NULL, 'edit_submit_name' => NULL, 'add_one_label' => NULL, 'add_one_cat_label' => NULL, 'edit_this_label' => NULL, 'edit_one_label' => NULL, 'edit_this_cat_label' => NULL, 'edit_one_cat_label' => NULL, 'do_next_description' => NULL, 'appended_actions_already' => false, 'select_name_description' => NULL, 'care_please' => true, 'new_id' => NULL, 'no_blank_ids' => true, 'table_prefix' => '', 'table' => NULL, ))
Type'->'
Args 

File'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'
Line'962'
Function'load_module_page'
Args'adminzone/pages/modules/admin_ocf_emoticons.php'

'admin_ocf_emoticons'


File'/home/wwwteena/public_html/Registered/sources/global.php(249) : eval()\'d code'
Line'749'
Function'request_page'
Args'admin_ocf_emoticons'

true


File'/home/wwwteena/public_html/Registered/adminzone/index.php'
Line'51'
Function'do_site'
Args 

Parameters

test
1
MAX_FILE_SIZE
8388608
label_for__file
Upload
require__file
1
hidFileID_file
91
Back to the top
 
Posted
Rating:
#72218
Avatar

Please try the attached.

Attachment
sources/m_zip.php
» Download: m_zip.php (11 Kb, 85 downloads so far)


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:
#72233
Avatar

Well-settled

THANKS! CHRIS!

It has helped, you're the best!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: