samuelthomson
Forum Replies Created
-
Thank you, very simple answer and it seems to work fine for me, even if I’m not exactly sure what it does.
Forum: Networking WordPress
In reply to: Changes to .htaccess for multisiteHello,
I’ve read that page, but I’m really confused as to how I’m supposed to change the examples to direct “file not found” errors to my home page. So far I have the following (I replace mysite with my actual domain name):
RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?$ “http\:\/\/mysite\.com\/” [R=301,L]Can you suggest where I might be going wrong? I also found the following suggested code, but this just led to an absolute minimal 404 error page:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)special\.html?$ cgi-bin/special/special-html/$1Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()I…I…ok, not sure HOW exactly, but I’ve made some progress somehow…
I think I did the following in this order:
– Remove ENTIRE contents of the public_html folder
– found a saved version of this folder from ages ago and deleted the BigSquare theme from it.
– uploaded the rest of this folder to public_html
– installed the Trending parent theme
– created a new child theme using very basic settings
– created a 2nd new child theme in a similar way for the 2nd blog
– activated both of these and tested them
– downloaded a fresh version of BigSquare
– activated it for the 2nd blognow I seem to have both themes working…
I guess Ill see if they are both still working after I make some adjustments to the Big Square theme
thanks for your help, I’m hoping thats it, but I guess I might be back here within the hour
Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()I don’t know if it is the theme, because the same issue apparently happens with both the BigSquare theme and the Trending theme.
I hope he gets back to me soon, im pretty much poised to delete everything and start all over again, I have to get my portfolio online tomorrow so I can apply for a particular job.
Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()Ok, just to backtrack, I tried it with trending_cgportfolio (where I only changed the name) AND also I tried it with a version of the fresh downloaded child theme sample that I linked to, with exactly the same results. As I recall, even the specified lines (eg, 272) were the same.
I already signed up to Justin’s $25 support service, I’m waiting for him to get back to me about it.
In the mean time, I’m backing everything up and basically preparing to totally re-write the blogs. This sounds like overkill but I havent been able to get to the bottom of this
Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()oh, sorry, i didn’t know about the code rules.
Otherwise,
No, thats not what I’m doing. I’m using an out-of-the-box child theme from here:
http://themehybrid.com/themes/trendingThe functions.php in the child theme folder looks fine right up to the point when I activate it on either of my blogs using the dashboard.
At that point, a whole lot of code is coppied into it from somewhere – but I don’t know where.After that happens, I can replace it with a new version of functions.php, but again the same thing happens to it as soon as I access a new page on my dashboard or refresh the front-end blog page.
There doesn’t seem to be a problem with parent themes, only child themes.
I’d say that my wordpress has been hacked, only this seems a bit melodramatic.
Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()Hello, I tried re-installing the theme from scratch but the problem persisted. I also tried replacing the entire “public_html” folder with a version that worked previously and it still persisted.
I’ve now tried switching themes to a theme called “trending”, which worked fine until I tried to create and activate a child theme, then I got a very similar error message:
Fatal error: Cannot redeclare _verifyactivate_widget() (previously declared in /home/artistf/public_html/wp-content/themes/trending_cgportfolio/functions.php:44) in /home/artistf/public_html/wp-content/themes/trending/functions.php on line 272
I dont have any activated plugins, can you recommend anything else?
Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()Yes, I changed one or two things in the header and footer using the “edit” button on the wordpress dashboard. I also used dreamweaver to edit a few things. I cant remember exactly what I changed but it was nothing major, just little pokes here and there (yeah right) to make the theme look a little bit different.
But what I dont understand is that the problem persisted after I deleted the entire “public_html” folder and replaced it with a previous version from when it worked fine. So presumably there was something outside this folder that was messing things up.
I’m going to try re-installing the “big square” theme and see what happens
Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()OK, thanks again for clarifying that.
Once it has been removed, is it worth trying to re-install it from scratch, or is it always going to mess up?
I’ll start trying to re-instal it anyway.
Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()I found an instance of a similar issue here, but there is no solution given:
http://ww.wp.xz.cn/support/topic/visiting-wp-admin-alters-functionsphp?replies=7#post-2626929
Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()Thanks for your help Ipstenu,
I actually replaced the whole “public_html” folder with a previous version. I can now access the dashboard but only in a really weird way. Basically I keep getting this error message:
Fatal error: Cannot redeclare _verifyactivate_widget() (previously declared in /home/artistf/public_html/wp-content/themes/big-square-1.2/bigsquare/functions.php:16) in /home/artistf/public_html/wp-content/themes/big-square-1.2/bigsquare/libs/functions/functions.php on line 134
This error seems to occur whenever I try to load a page of the dashboard for my blog that uses the “bigsquare” theme (or any page of the actual blog). I get round it by going to the file specified in the error message and replacing it with an old version of “functions.php” and refreshing the page that gave me the error message.
This allows me to access the required page, but I have to do this every time I try to load a new page on the dashboard or the actual blog.
All my plugins are de-activated for both blogs, and for the multisite network in general.
I could try deleting the “big square” theme folder, re-installing it from scratch and then customizing it again, but
a) is that necessary (because I spent ages customizing it)?
b) will I just end up in the same position again regarding additional themes?Is there a problem with using different parent themes in general, or should I be able to figure this one out? Like I say, everything was working fine before I tried to activate a second theme and I thought that replacing the whole “public_html” folder would at least put things back the way they were, but now something must be changing the “functions.php” file.
sam
Forum: Networking WordPress
In reply to: Fatal error: Cannot redeclare _verifyactivate_widget()Also, I can’t access the dashboard for the site that I tried to activate “skeleton” with, or my Network Admin dashboard.
Forum: Networking WordPress
In reply to: Can't access 2nd multisite dashboardAmazing! Thanks very much, that seems to have totally helped me out.
If it helps anyone else, I did the following:
1. Log in to my initial (first) wordpress site that has the “multisite” feature set up and the “WordPress MU Domain Mapping” plugin installed:
1. Go to “my sites”>>”network admin”>>”sites”
2. Deleted all sites apart from the first, initial site
3. Added a new site with the “site address” as “portfolio.domain.org” and title as “portfolio”(everything else I left as default)4. Logged into my hosting account Cpanel and DELETED the “redirect” entry for my parked domain,”domain.info”(this was previously redirecting to “domain.org”, it now doesn’t redirect anywhere)
5. Still in my Cpanel, set up a subdomain entry for “portfolio.domain.org”6. Went back to my main wordpress dashboard, went to “my sites”>>”portfolio”>>”dashboard”
7. Logged in to my dashboard!
8. Went to “tools”>>”domain mapping” (still in the secondary site’s dashboard)
9. Entered “domain.info” in the text field and checked the “Primary Address” button, then clicked “ADD”
10. Checked the URL, and “domain.info” still points to my secondary blog.Again, thankyou very much. I’m not exactly sure how many things I previously had going wrong, but it now seems to work fine!
Forum: Networking WordPress
In reply to: Can't access 2nd multisite dashboardHello, I recently had to re-phrase this question for my hosting provider and I thought I’d post it here in case it makes my issue any clearer. I’d still really apreciate any help that anyone can offer on this. Its probably obvious but I’ve read as many other posts on the same topic as I could find and I still haven’t got there
I have a wordpress blog hosted in the “public_html” folder of “domain.org”. There is an option with wordpress to expand this blog into something called a “multisite”, which I have done (or at least tried to do, following step-by-step instructions and everything). From what I understand, a multisite uses a single database, a single “wp-config.php” file etc, but otherwise appears from the front end to be 2 (or more) separate blogs that can each have different content/themes/etc. Each blog is maintained through a separate wordpress “dashboard” and you can link each separate blog to a different URL.
Currently, I *believe* I have the primary, original blog linked to the URL “domain.org” and the secondary blog linked to “domain.info”. If you access these URL’s hopefully you will see that they display different content, as intended.
However, the problem I’m expereiencing is with the “dashboard” for the secondary blog. WordPress sites require the blogger to log into their dashboard to write posts and edit the wordpress theme etc. I can log in to the “dashboard” for the original blog via “domain.org/wp-admin” . However, when I try to log into the dashboard for my secondary blog via “domain.info/wp-admin”, the login page can’t seem to find my database, or whatever it uses to access my dashboard. It seems to acknowledge that my login details are correct (which they are), but it basically just refreshes the login screen.
As I have said, the front ends of the 2 different blogs seem to relate to the two different URL’s as intended. The problem seems to be with the secondary blog’s “dashboard” login page being able to find the database (or whatever it uses to send me to my dashboard).
One solution that I have seen for similar problems (like http://ww.wp.xz.cn/support/topic/cant-access-2nd-dashboard-on-new-network-installation), is to change the “vhost.conf” file. Essentially I am trying to find out whether the solution lies with wordpress or with the web hosting. I was hoping that you could tell me whether there is anything obvious on the hosting side that might be getting in the way of what I’m trying to do, whether this is my DNS configuration, or domain redirection or possibly something like the vhost file mentioned above.
If I can provide any more information on this, or explain more about what I’m trying to do, please let me know.
sam
Forum: Networking WordPress
In reply to: Can't access 2nd multisite dashboardI don’t know if this is relevant, but it is certainly unexpected.
If I set up a domain mapping from my “network admin” dashboard with the details of my 2nd site, by entering:
Site ID: 2
Domain: Domain.infoThen suddenly everything redirects to my first site, by which I mean that entering “domain.info” (2nd site)as a URL redirects to “domain.org” (1st site)and entering in my login details for the “domain.info” dashboard logs me into the “domain.org” dashboard.
Also, if I go to Network Admin>>Sites, there is nothing listed under the “mapping” column for either site.
Does this sound relevant?