$_SESSION variable not saving on page refresh or new page
Are you using session__start() ; at the top of that other page? You always need to retrieve session data when changing pages. https://www.php.net/manual/en/function.session-start.php
Are you using session__start() ; at the top of that other page? You always need to retrieve session data when changing pages. https://www.php.net/manual/en/function.session-start.php
As in this question and answer, and because of your huge .htaccess file it’s like you have a .htaccess directive that’s causing your apache to not process that file or understand its type. As mentioned by @Rup, using the default WordPress .htaccess, and checking other directories for rogue .htaccess files will likely resolve this issue. … Read more
If it’s outputting some PHP from functions.php but not the whole file then likely you’ve just got mismatched PHP opening/closing tags – <?php and ?> somewhere, or potentially even mismatched string quotations. You need to edit that file in a text editor and look carefully around the point it’s starting to output PHP for mismatched … Read more
Line 1090 is function add_query_arg( …$args ) { This is the variable-length argument syntax that was introduced in PHP 5.6. You’re probably running an older version of PHP than that. Since version 5.2 WordPress requires at least PHP 5.6.20, but currently recommends 7.4+. See the requirements page or the readme in the download.
Well it took a while, but I figured out what was happening here, and the upshot is: no good deed goes unpunished. When setting up my server, I enabled IPv6 because I want to be a good internet citizen and help our collective migration to IPv6 I chose easyengine to manage my WP sites, which … Read more
I don’t have a ton of experience with manage wp but I am going to suggest an alternative for setting up a local site based on a live site. I would suggest using the plugin “All In One Migration” https://wordpress.org/plugins/all-in-one-wp-migration/ Install the plugin on the live, select “export” it will generate a file for you. … Read more
I think what you need to do to get the local install back up and running is either edit some database files manually, or make a couple changes to the wpconfig.php file in the root of your wp install. check out this codex page for instructions on editting this file. You will need to make … Read more
Check the ‘siteurl’ and ‘home’ values in your wp_options table, and update those URLs to: http://localhost:8000/wordpress
With localhost, you need to make sure that your mod_rewrite is on. You can do this in your httpd.conf file in MAMP. MAMP > CONF > APACHE > ORIGINAL > httpd.conf. Uncomment this line: LoadModule rewrite_module modules/mod_rewrite.so
I run a multisite setup for developing, it saves time and you can just delete the sub-site when you’re done developing. I also have a few different .xml files of common content types that I tend to use a lot (Portfolio items, Standard pages / posts, Testimonials, etc.) and I just import each one as … Read more