vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Post edit error plz help (https://vborg.vbsupport.ru/showthread.php?t=307152)

shahidbaloch 01-17-2014 04:03 PM

Post edit error plz help
 
1 Attachment(s)
Hi dear

I am using vbulletin 4.2.2 & i have post edit error msg.
after editing when i save the post i have following error.
why this error msg is shown?

Attachment 147849

Max Taxable 01-17-2014 04:10 PM

When did this start? I suspect perhaps your host upgraded PHP.

ozzy47 01-17-2014 04:28 PM

Have you tried on a unmodified default style?
Have you tried with all mods disabled?
What vB version and PHP version are you running?

shahidbaloch 03-09-2014 04:54 PM

Quote:

Originally Posted by ozzy47 (Post 2474966)
Have you tried on a unmodified default style?
Have you tried with all mods disabled?
What vB version and PHP version are you running?

yes I tried with default and unmodified style and without mods.
VB version is 4.2.2 and PHP version is 5.4.25.

ozzy47 03-09-2014 04:55 PM

Try adding the following line to your config.php under the <?php line:

Code:

define('SKIP_ALL_ERRORS', true);

shahidbaloch 03-09-2014 05:22 PM

1 Attachment(s)
Quote:

Originally Posted by ozzy47 (Post 2486054)
Try adding the following line to your config.php under the <?php line:

Code:

define('SKIP_ALL_ERRORS', true);

I have add this but it sent this error

Attachment 148399

I remove this line but this message is showing and forum is not open :(
plz give me a solution immediately

ozzy47 03-09-2014 05:25 PM

You need to edit the config file with notepad++ not notepad or wordpad.

I suspect it has added a blank space at the beginning of the file.

http://notepad-plus-plus.org/download/v6.5.5.html

shahidbaloch 03-09-2014 05:28 PM

Quote:

Originally Posted by ozzy47 (Post 2486058)
You need to edit the config file with notepad++ not notepad or wordpad.

I suspect it has added a blank space at the beginning of the file.

http://notepad-plus-plus.org/download/v6.5.5.html

now there is no space at the beginning
now my forum is stuck plz give me solution immediately

ozzy47 03-09-2014 05:29 PM

PM me your FTP info, and a link to the site, and I will see what I can do.

shahidbaloch 03-09-2014 05:33 PM

Quote:

Originally Posted by ozzy47 (Post 2486062)
PM me your FTP info, and a link to the site, and I will see what I can do.

if I replace config.php it will be ok?

ozzy47 03-09-2014 05:35 PM

If you add all your current info into it is should be, but if you do that I will no longer be able to do anything, as I won't know the original status.

You could upload a new one, and rename the old one to config.php.old, so you won't loos any original info.

shahidbaloch 03-09-2014 05:39 PM

Quote:

Originally Posted by ozzy47 (Post 2486064)
If you add all your current info into it is should be, but if you do that I will no longer be able to do anything, as I won't know the original status.

You could upload a new one, and rename the old one to config.php.old, so you won't loos any original info.

Ok I am try to do so.
if problem persist then I'll give u ftp info
but why it happend?

ozzy47 03-09-2014 05:42 PM

Editing files with notepad will sometimes add a UTF8bom in the files, causing you issues, that is why it is best to edit them with notepad++

shahidbaloch 03-09-2014 05:45 PM

Quote:

Originally Posted by ozzy47 (Post 2486066)
Editing files with notepad will sometimes add a UTF8bom in the files, causing you issues, that is why it is best to edit them with notepad++

if I edit it again with notepad++ it will be ok?

if I replace it with new config.php the forum will run normally?

ozzy47 03-09-2014 05:46 PM

If you do a new config file, and add all your info into it from the old file, with notepad++ it should be ok.

shahidbaloch 03-09-2014 05:51 PM

Quote:

Originally Posted by ozzy47 (Post 2486068)
If you do a new config file, and add all your info into it from the old file, with notepad++ it should be ok.

do you means I must copy old config.php data into new?

ozzy47 03-09-2014 05:52 PM

No not the data, any changes that are in there such as,
$config['Database']['dbname'] = 'XXXXXXX';
$config['MasterServer']['username'] = 'XXXXXXX';
$config['MasterServer']['password'] = '[XXXXXXXX]';

shahidbaloch 03-09-2014 05:54 PM

Quote:

Originally Posted by ozzy47 (Post 2486071)
No not the data, any changes that are in there such as,
$config['Database']['dbname'] = 'XXXXXXX';
$config['MasterServer']['username'] = 'XXXXXXX';
$config['MasterServer']['password'] = '[XXXXXXXX]';

I am sending u FTP info plz solve the issue.

ozzy47 03-09-2014 05:56 PM

Did you make any changes to the file other than adding and removing the afore mentioned line?

shahidbaloch 03-09-2014 05:57 PM

I did not change these area.

--------------- Added [DATE]1394387894[/DATE] at [TIME]1394387894[/TIME] ---------------

Quote:

Originally Posted by ozzy47 (Post 2486073)
Did you make any changes to the file other than adding and removing the afore mentioned line?

no I did not any change just put that line that you give.
after error I remove that line.

--------------- Added [DATE]1394387929[/DATE] at [TIME]1394387929[/TIME] ---------------

FTP info send by pm to you plz check and solve the issue.

ozzy47 03-09-2014 06:16 PM

Sorted, and I also added that line to your config that I described in post #5

shahidbaloch 03-09-2014 06:20 PM

Quote:

Originally Posted by ozzy47 (Post 2486077)
Sorted, and I also added that line to your config that I described in post #5

thanks alot dear now its working fine.
I have no words to thanks and express my feeling.
thanks alot alot

may I know the problem?

ozzy47 03-09-2014 06:25 PM

I already told you the issue, when you edited it in notepad, it added a UTF-8 bom and probably did not save the file as ASCII plaintext, so all I did was upload a fresh copy, with all your required info that was needed.

shahidbaloch 03-09-2014 06:31 PM

Quote:

Originally Posted by ozzy47 (Post 2486079)
I already told you the issue, when you edited it in notepad, it added a UTF-8 bom and probably did not save the file as ASCII plaintext, so all I did was upload a fresh copy, with all your required info that was needed.

okz dear thanks alot alot
be happy always.

ozzy47 03-09-2014 10:19 PM

Next time you decide to edit the config file, follow this article, https://vborg.vbsupport.ru/showthread.php?t=308457

Max Taxable 03-09-2014 10:24 PM

Quote:

Originally Posted by ozzy47 (Post 2486110)
Next time you decide to edit the config file, follow this article, https://vborg.vbsupport.ru/showthread.php?t=308457

And that is true for ANY php file.


All times are GMT. The time now is 01:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01346 seconds
  • Memory Usage 1,766KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete