1 cionolak Oct 03, 2013 01:08
3 tilqicom 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 cionolak Oct 03, 2013 01:37
Where do I find $debug_pwd ?
5 cionolak Oct 03, 2013 02:31
6 mgsolipa Oct 03, 2013 03:08
It looks like you have set a non-existent skin on any of your blogs. May you double-check that all your blog's skins are well configured? Please look at this message: http://www.entrancetohell.com/b2/blog2.php
7 cionolak 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 cionolak Oct 03, 2013 04:21
Anyone? I'm stuck here. :(
9 mgsolipa Oct 03, 2013 04:25
Have you tried this instructions: http://b2evolution.net/man/user-guide/quick-customization/using-a-different-skin ?
10 cionolak Oct 03, 2013 04:27
Yup. No go..
11 mgsolipa 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 cionolak Oct 03, 2013 04:30
I made sure all of the other blogs were set and I reset params... still nothing.
13 mgsolipa 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 cionolak 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?
15 mgsolipa Oct 03, 2013 04:53
Please change it to "Relative to baseurl".
16 cionolak 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 cionolak 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 sam2kb 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 cionolak 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 cionolak Oct 03, 2013 23:29
Should I remove the code I added above or leave it in?
What should I try now?
21 mgsolipa 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 cionolak 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 sam2kb 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 cionolak Oct 04, 2013 03:39
Should I remove the // before the param ('c')?
25 cionolak Oct 04, 2013 03:42
I removed the //
Added the new string..
Got a blank page with the following at the top:
NULL
26 sam2kb 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?
27 cionolak Oct 04, 2013 04:05
Where do I put that?
28 cionolak 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 mgsolipa Oct 04, 2013 10:44
30 cionolak 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 sam2kb 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?
Ok, I'm thinking this has to do with SKINS. I cannot even preview other skins without getting the same error.
Suggestions?