snstar2006
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to get the current page idGreat! it worked perfectly.
Forum: Fixing WordPress
In reply to: How to get the current page idpage id still not working for me, so I use the last method that I want to use, using $_SERVER[“REQUEST_URI”] to get the URL to distinguish between the pages.
Forum: Fixing WordPress
In reply to: How to get the current page idwp_reset_query(); did not work for me. 🙁
What I want to do is to create something like a index page, with a list of links to specific posts of my choice.
So I want to use page id to tell the program that when it is the index page showing, do process A, else (when it in the post page) do process B.
Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverWell, I need to use that theme, because the client want to use the same theme. All they want is to move the hosting to my end. So I need to find ways to figure this out with the theme creator.
Anyway, thanks for your help with all this. I think I can handle the rest (if not I may post more question…)
Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverOkay, now everything works, except when I activate the theme(the “hatchetcaye” theme), I got error 500 again. Maybe I should contact the person who created the theme?
Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverSo let me get this right, according to Moving_WordPress:
If you want to test before you switch, you must temporarily change “siteurl” and “home” in the database table “wp_options” (through phpMyAdmin or similar).
If you had any kind of rewrites (permalinks) setup you must disable .htaccess and reconfigure permalinks when it goes live.I already changed my “siteurl” and “home” in the database, but how do I disable .htaccess and reconfigure permalinks?
Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverI changed the site url in database after uploading.
I didn’t reset the permalinks because I think I will switch back to the original url ( http://hatchetcaye.com/) after everything is setup correctly.Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverIt’s this one that I need to make it work correctly:
http://www.bimwddomains.com/hatchetcaye.com/Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverSorry for the confusion, http://hatchetcaye.com/ is the original, should-be-like-this site. This is still with the original hosting until I finish the setting up on my side.
The site I am working on can be visible through the URL http://www.bimwddomains.com/hatchetcaye.com/. When I am sure that the site is correctly working, then I will point the nameserver from the domain registrar to the new hosting.
Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverOK, if have re-uploaded a fresh new version of the theme, and applied it to the site. What next?
Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverYes, it’s a custom theme, you can see the site here: http://hatchetcaye.com/
I am checking the newly hosted site by changing my host file or use an alternate url: http://www.bimwddomains.com/hatchetcaye.com/
Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverOk, so now I change the theme to load from the database, so that it is using the default “twntyeleven” theme, and the site is showing something. But only the homepage is working, other page will show 404 error. I am guessing that the original theme has some kinds of redirection working?
I switch back the theme and I’ll get this error message in the log:
[12-Jul-2012 17:43:37] PHP Parse error: syntax error, unexpected T_FUNCTION in /home/cp27908/public_html/hatchetcaye.com/wp-content/themes/hatchetcaye/functions.php on line 12This is line 12-19
add_action('wp_enqueue_scripts', function() { wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js', null, null); wp_register_script('fancybox', get_template_directory_uri().'/fancybox/jquery.fancybox.pack.js', array('jquery'), filemtime(__DIR__.'/fancybox/jquery.fancybox.pack.js')); wp_register_script('fancybox-buttons', get_template_directory_uri().'/fancybox/helpers/jquery.fancybox-buttons.js', array('fancybox'), filemtime(__DIR__.'/fancybox/helpers/jquery.fancybox-buttons.js')); wp_enqueue_script('theme', get_template_directory_uri().'/js/default.js', array('jquery', 'fancybox', 'fancybox-buttons'), filemtime(__DIR__.'/js/default.js')); });Not sure what should be done to fix the theme… 🙁
Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverI checked the servers error log, it shows error with some plugins and the theme, so I disable the plugin and renamed the theme folder as mentioned in http://wordpress.org/support/topic/internal-server-error-after-moving-to-new-server-1. Then I got a blank page and no update in the error log.
Forum: Fixing WordPress
In reply to: HTTP Error 500 after moving to a new serverThank you for replying, but I have read and done everything on that article, but still getting a 500 error, or a blank page.