Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit News #2078

Closed
Worldwide7477 opened this issue Nov 29, 2016 · 15 comments
Closed

Submit News #2078

Worldwide7477 opened this issue Nov 29, 2016 · 15 comments
Assignees
Labels
type: bug A problem that should not be happening
Milestone

Comments

@Worldwide7477
Copy link

Worldwide7477 commented Nov 29, 2016

When submitting news it does not go through it shows error:
"Warning Error uploading image"
When i'm not uploading a image? below is the debug from e107 debug.

submit news tricitytorrents  #1

submit news tricitytorrents

Any help on this would be great thanks in advance.

@Moc Moc added the status: testing required Someone needs to confirm this issue's existence and write a test to prevent the fix from regressing. label Nov 30, 2016
@chory
Copy link

chory commented Sep 5, 2017

I do not select any image to load and I get the same error, and Undefined index: submitnews_media, Line 390 of /home/xxx/yyy/clan-toro.es/submitnews.php

@Moc Moc self-assigned this Sep 6, 2017
@Moc Moc added this to the e107 v2.1.7 milestone Sep 6, 2017
@Moc Moc added type: bug A problem that should not be happening and removed status: testing required Someone needs to confirm this issue's existence and write a test to prevent the fix from regressing. labels Sep 6, 2017
@Jimmi08
Copy link
Contributor

Jimmi08 commented Sep 18, 2017

I think that problem is here:

		// ==== Process File Upload ====
		if (FILE_UPLOADS && !empty($_FILES['file_userfile']) && vartrue($pref['subnews_attach']) && vartrue($pref['upload_enabled']) && check_class($pref['upload_class']))
		{
			$uploaded = e107::getFile()->getUploaded(e_UPLOAD, 'unique', array('file_mask' => 'jpg,gif,png', 'max_file_count' => 3));

			if (empty($uploaded)) // Non-specific error

There is test: !empty($_FILES['file_userfile']) but $_FILES is array, so its not empty.

image

CaMer0n added a commit that referenced this issue Sep 18, 2017
@CaMer0n
Copy link
Member

CaMer0n commented Sep 18, 2017

@chory Please try the updated file. Thank you @Jimmi08

@chory
Copy link

chory commented Sep 18, 2017

OK thanks, works fine.
But e107_admin/newspost.php?[debug=everything+] show a blank page.
Earlier I do not know, as I could not send news.

@Jimmi08
Copy link
Contributor

Jimmi08 commented Sep 18, 2017

No problems with php5. No blank page.

@CaMer0n
Copy link
Member

CaMer0n commented Sep 18, 2017

Thank you both.

@CaMer0n CaMer0n closed this as completed Sep 18, 2017
@chory
Copy link

chory commented Sep 19, 2017

I will try with php5

[edited]
Versión de PHP
5.6.31

MySQL
5.5.57-cll
Base de datos: xxxxx
PDO: Habilitado
Mode: NO_ENGINE_SUBSTITUTION
blank/white page

[edited]
Versión de PHP
5.4.45
blank/white page

@rica-carv
Copy link
Contributor

Clean caches (E107 admin area & browser), and try again, please...

@chory
Copy link

chory commented Sep 19, 2017

It's done
Everything remains the same

@CaMer0n
Copy link
Member

CaMer0n commented Sep 19, 2017

A white page represents an error. Please check for error_log in the root directory.

@Moc
Copy link
Member

Moc commented Sep 20, 2017

A white page represents an error. Please check for error_log in the root directory.

Or in your Apache error log through the webhosting control panel

@chory
Copy link

chory commented Sep 22, 2017

No log file, or empty file

@chory
Copy link

chory commented Sep 23, 2017

[Solved]
I activated display_errors in server and show me error in _ /e107_languages/Spanish/admin/lan_newspost.php on line 142_

@CaMer0n
Copy link
Member

CaMer0n commented Sep 23, 2017

@chory Is it a problem in the official v2.1.6 language pack? ( @Norwayman )

@bportotrix
Copy link

Yes, Solved removing the excess "" on 142 line

@Moc Moc reopened this Sep 4, 2018
@Moc Moc closed this as completed Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

7 participants