Shariq Khan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Site won’t leave loading screen (on any page)Check you .htaccess and see if you find anything that looks out of place.
Also, try enabling debug log on the site, and see what the logs say.Logs can be found in
wp-content/debug.log
fileForum: Fixing WordPress
In reply to: can’t login to my admin after Fedora 30 and WP upgradeTry the steps mentioned here
Forum: Fixing WordPress
In reply to: can’t login to my admin after Fedora 30 and WP upgradeHmm… seems odd. PHP should be available, else WordPress wouldn’t be running.
Try this:
1. Inside the directory
lawandrevolution
, create a.php
file with any name you like.2. Edit the file, and paste the following code in it:
<?php phpinfo(); ?>
3. Now execute the file in the browser. So, if the filename you had chosen was
testphpfile.php
, then open this in your browser:https://lawandrevolution.com/testphpfile.php
4. Search for the keyword
json
in the information that is displayed.5. Once you are done with debugging your issue, delete the file.
- This reply was modified 3 years, 7 months ago by Shariq Khan.
Forum: Fixing WordPress
In reply to: can’t login to my admin after Fedora 30 and WP upgradebuzzword-bingo:~/web_scripts/lawandrevolution> php -i | grep json php: Command not found.
In that case try this:
which php
You’ll get an output that looks something like:
/usr/bin/php
The exact path may differ depending on your system. But whatever path you get, use that to run the command from the previous comment.
So, if your path is/usr/bin/php
, then use this command:/usr/bin/php -i | grep json
Forum: Fixing WordPress
In reply to: can’t login to my admin after Fedora 30 and WP upgradeFatal error: (mghachem) Uncaught Error: Call to undefined function json_encode()
json_encode
is a standard PHP function. So, it should have been available by default.
UNLESS
1. You are using PHP version < 5.2, which is not the case as you mentioned in your first comment that you have upgraded from 5.5.26 to a higher version
2. Or PHP was compiled without JSON.You said that you did the installation manually. Was it PHP or WordPress that you installed manually?
If it was PHP that you compiled manually, then you should check ( the manual install instructions that you followed) if there was a step where you used the flag--disable-json
If you have access to the server and can run commands on it, then try this:
php -i | grep json
Paste the output here
Forum: Developing with WordPress
In reply to: change src attribute of shortcode based on user clickCan you post the URL of the pages in question?
Forum: Everything else WordPress
In reply to: What is the path for jquery.min.js ?what’s the best place to put it
It depends on whether the script in question is a part of a plugin or a theme.
If you need the script for a plugin that you are writing, then store them inside a sub-directory within your plugin (or theme)However, if the script in question has no link to your plugin (or theme), then you shouldn’t bother with it.
May I ask whats your use case?
Forum: Fixing WordPress
In reply to: Irrelevant Pages Created AutomaticallyTry flushing the Autooptimize cache, and deactivating the plugin temporarily.
See if it fixes the issueForum: Fixing WordPress
In reply to: Passive listener issue in gtmatrixThe gtmatrix is something which needs looking at code and your site’s backend to fix, which is out of the scope of this forum.
You can try minifying the scripts, moving non-critical scripts to the footer, and using an optimization plugin.
Probably, hire a developer to fix it, if you are not sure of what you are doing
Forum: Fixing WordPress
In reply to: WP_POSTS not workingPerhaps try disbaling WPML plugin momentarily, and see if that has any effect
Forum: Fixing WordPress
In reply to: WP_POSTS not workingThe error file is named
debug.log
and it will be created in the/wp-contents
directoryForum: Fixing WordPress
In reply to: WP_POSTS not workingPerhaps try enabling debug logging in WordPress?
Forum: Fixing WordPress
In reply to: Unable to see features imagesForum: Fixing WordPress
In reply to: Unable to see features imagesCan you post a screenshot of thw post edit screen for a post which displays featured image on the backend, but not on the frontend?
Forum: Everything else WordPress
In reply to: What is the path for jquery.min.js ?Doesn’t WordPress load jQuery by default?
I don’t think you need to load it again from some other source because WP already bundles that in.