Recent Topics

1 Oct 03, 2013 01:08    

Hey gang. I upgraded my blog, everything went smoothly, I look through the Admin panel and everything show, all posts, pics, settings, etc. BUT when I click to see the actual blog or go to the blog address I get this:

Bad Request!

The parameters of your request are invalid.

If you have obtained this error by clicking on a link INSIDE of this site, please report the bad link to the administrator.

Go back to home page


Enable debugging to get additional information about this error.
How to enable debug mode?

The blog url is: http://www.entrancetohell.com/b2

What went wrong???

2 Oct 03, 2013 01:22

Ok, I'm thinking this has to do with SKINS. I cannot even preview other skins without getting the same error.

Suggestions?

3 Oct 03, 2013 01:27

like prompted, enable debug mode and report here.
From admin change to a default skin like "evopress" and see if that helps

4 Oct 03, 2013 01:37

Where do I find $debug_pwd ?

7 Oct 03, 2013 03:35

I saw that but couldn't figure out how to set that.. All of the thumbs for skins show in the admin blogs>skins, but when I click "preview" that's what I get. How do I configure skins?

8 Oct 03, 2013 04:21

Anyone? I'm stuck here. :(

11 Oct 03, 2013 04:27

Remember that you need to change the skin for [Blog A], if any other blog is configured to use a non-existing skin, you should change it as well.

12 Oct 03, 2013 04:30

I made sure all of the other blogs were set and I reset params... still nothing.

13 Oct 03, 2013 04:42

All right, now the "non-existent skin" message is not shown in your page anymore.

As you upgraded from a really outdated version, let's try a couple of things:

1) Check that the URL's for each blog are properly configured: http://b2evolution.net/man/back-office-reference/managing-collections/url-seo-settings/blog-url-settings
2) Try to disable your plugins (one by one) and test the result, maybe an outdated plugin is producing the issue with the parameters reported in the output.

14 Oct 03, 2013 04:48

Cool.

For option 1).. what's the best setting to check. All have a default of: Explicit param on index.php Should I stay with that or use Relative or Absolute?

16 Oct 03, 2013 14:30

I changed all of the blogs to "Relative to baseurl" and still no change.

Going to try disabling plugins now...

17 Oct 03, 2013 14:39

I disabled all of the plugins one by one until they were ALL disabled and I'm still getting the same error. :(

18 Oct 03, 2013 15:17

Add the following in file /inc/items/model/_item.funcs.php on the line 90. Open your blog, and post here whatever text you gonna see.

// See what the value of "c" param is
var_export($_GET['c']);
echo '<br>';
var_export($_POST['c']);
echo '<br />';
var_export($_COOKIE['c']);
die;

param( 'more', 'integer', 0, true );
param( 'page', 'integer', 1, true ); // Post page to show
param( 'c',    'integer', 0, true ); // Display comments?
param( 'tb',   'integer', 0, true ); // Display trackbacks?
param( 'pb',   'integer', 0, true ); // Display pingbacks?

19 Oct 03, 2013 15:31

Hi Sam.

Line 90 is a } so I added lines 1-7 immediately after. Was that correct?

Added and got the following:

NULL
NULL
NULL

20 Oct 03, 2013 23:29

Should I remove the code I added above or leave it in?

What should I try now?

21 Oct 04, 2013 00:18

Yes, please remove the code.

After that, comment line 94 by adding // at the beginning of the line and let us know the result.


//param( 'c',    'integer', 0, true ); // Display comments?

22 Oct 04, 2013 00:42

IT'S ALIVE!!!!

Whatever that just did it's displaying the blog now! MUCHAS GRACIAS mgsolipa, sam2kb, and tilqicom. :)

Now I did try changing and previewing other skins. Some work and others I still get this error:

An unexpected error has occurred!

If this error persists, please report it to the administrator.

Go back to home page


Additional information about this error:
The skin [skin name] set for blog [Blog A] does not exist. It must be properly set in the blog properties or properly overriden in a stub file.

23 Oct 04, 2013 03:38

You shouldn't comment out that line. We need to find what causes that error. The last time I dealt with similar errors is when a website was hacked and some malicious scripts injected their own values in variables used by b2evo.

So add the following above the param() functions and post the output here

var_export($_GLOBALS['c']);
die;

24 Oct 04, 2013 03:39

Should I remove the // before the param ('c')?

25 Oct 04, 2013 03:42

I removed the //
Added the new string..

Got a blank page with the following at the top:

NULL

26 Oct 04, 2013 03:50

Still nothing... Well, at least this should hide the error.

// Initialize the faulty param
set_param('c', 0);

param( 'c',    'integer', 0, true ); // Display comments?

28 Oct 04, 2013 04:09

NM got it. All still working now. :)

Still having that same issue where some skins work fine and other get that "does not exist" error. Hmmm...

29 Oct 04, 2013 10:44

Hello @cionolak and @sam2kb, my suggestion was only to test if the site could work beyond that line, but not as a final solution.

30 Oct 04, 2013 14:34

Of course. So what should I try next? For now it's working, but obviously there's still an error somewhere...

Thanks again for all your help and patience guys.

31 Oct 04, 2013 15:16

Just leave it like this, it should fix the error. The other error you mentioned simply means that the skin you requested is not installed, it's irrelevant to the initial error.

// Initialize the faulty param
set_param('c', 0);

param( 'more', 'integer', 0, true );
param( 'page', 'integer', 1, true ); // Post page to show
param( 'c',    'integer', 0, true ); // Display comments?
param( 'tb',   'integer', 0, true ); // Display trackbacks?
param( 'pb',   'integer', 0, true ); // Display pingbacks?


Form is loading...