Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Undefined index: news_0240

Undefined index: news_0240

Line: 195 File -- D:\AppServ\www\p\infusions\news\news_submit.php

-Source code (Line: 185 - 205)
CodeDownload  
185               'news_body_field'     => form_textarea('news_extended', $locale['news_0005'], $criteriaArray['news_extended'],
186                   [
187                       'required'  => $news_settings['news_extended_required'] ? TRUE : FALSE,
188                       'type'      => fusion_get_settings('tinymce_enabled') ? 'tinymce' : 'html',
189                       'tinymce'   => fusion_get_settings('tinymce_enabled') && iADMIN ? 'advanced' : 'simple',
190                       'autosize'  => TRUE,
191                       'form_name' => 'submit_form',
192                   ]
193               ),
194               'news_submit'         => form_button('submit_news', $locale['news_0700'], $locale['news_0700'], array('class' => 'btn-primary
                m-r-10', 'icon' => 'fa fa-hdd-o')),
195               'preview_news'           => (fusion_get_settings('site_seo') ? '' : form_button('preview_news', $locale['news_0240'],
                $locale['news_0240'], array('icon' => 'fa fa-eye'))),




- Line 195 -- 19 minutes ago
-Undefined index: news_0240
CodeDownload  
196               'criteria_array'         => $criteriaArray,
197           ];
198   
199           echo openform('submit_form', 'post', BASEDIR."submit.php?stype=n", array("enctype" => $news_settings['news_allow_submission_files'] ?
            TRUE : FALSE));
200   
201           echo strtr(display_news_submissions_form($info), [
202               '{%title%}'                  => $locale['news_0400'],
203               '{%guidelines%}'             => $info['guidelines'],
204               '{%news_subject_field%}'     => $info['news_subject_field'],
205               '{%news_language_field%}'    => $info['news_language_field'],
206   

In locale news_admin.php probably missing?
$locale['news_0240'] = "Preview News";
In today's update !!
Hi, thanks you for pointing the issue. Yes, 0240 is deleted. (news_0240 is news_0141). I've reflected the git change for isset error.
thanks all
Illegal string offset 'error'
Line: 108 File -- D:\AppServ\www\p\infusions\downloads\admin\downloads.php
On Page -- infusions/downloads/downloads_admin.php?aid=f3b74ed52a2db0d5&section=download_form

Source code (Line: 98 - 118)
CodeDownload  
98           'download_filesize'          => form_sanitizer($_POST['download_filesize'], '', 'download_filesize'),
99           'download_visibility'        => form_sanitizer($_POST['download_visibility'], '0', 'download_visibility'),
100           'download_allow_comments'    => isset($_POST['download_allow_comments']) ? 1 : 0,
101           'download_allow_ratings'     => isset($_POST['download_allow_ratings']) ? 1 : 0,
102           'download_datestamp'         => isset($_POST['update_datestamp']) ? time() : $data['download_datestamp']
103       );
104   
105       /** Bugs with having Link and File together -- File will take precedence **/
106       if ($defender::safe() && !empty($_FILES['download_file']['name']) && is_uploaded_file($_FILES['download_file']['tmp_name'])) {
107           $upload = form_sanitizer($_FILES['download_file'], '', 'download_file');
108           if ($upload['error'] == 0) {



Line 108 -- 4 minutes ago
Illegal string offset 'error'

CodeDownload  
109               $data['download_file'] = !empty($upload['target_file']) ? $upload['target_file'] : $upload['name'];
110               if (isset($_POST['calc_upload'])) {
111                   $data['download_filesize'] = parsebytesize($upload['source_size']);
112               }
113           }
114       } elseif (!empty($_POST['download_url']) && empty($data['download_file'])) {
115           $data['download_url'] = form_sanitizer($_POST['download_url'], "", "download_url");
116           $data['download_file'] = '';
117       } elseif (empty($data['download_file']) && empty($data['download_url'])) {
118           defender::stop();
119   

Mesame, no, the trace is incorrect. You missed the stack trace, need to click on the link. I think i need to address the error console again. Many get it wrong.

Anyway, i run full scan and find all 'error' and replace with a sure fire check.
https://github.com/php-fusion/PHP-Fusion/commit/a6bd8f127aae6eeb9021b61480b935c2ff77e6ff
Thread Information
Author
Replies
6 posts
Views
1,738 times
Last Post
Last updated on 3 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Kvido, Chan, MeSaMe