Konstantinos Xenos
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Uncaught SyntaxError: Invalid or unexpected token: load-scripts.phpHello,
Try editing your
wp-config.php
file ( it is located on the root folder of your installation ) and right before the lines that say:/* That's all, stop editing! Happy blogging. */
add this
define('CONCATENATE_SCRIPTS', false);
This will tell WordPress to load each script on it’s own instead of combining them. This might be caused due to some faulty or outdated plugin .js that overrides something else when it is concatenated.
Forum: Fixing WordPress
In reply to: Comments don’t appear anymore on my articlesHello, I see that you are using a commercial theme. We don’t have access to commercial products so we can offer support here unfortunately. You’ll have to contact the support team of your theme through https://wp-royal.com/ . I’m sure they’ll help you out as you’re already their client and they know how their theme works best.
Forum: Fixing WordPress
In reply to: Importing users and verifying the detailsHello, all of this is doable but the ways of doing it may vary depending your knowledge and how you want to deal with it. I can tell you the ‘idea’ of it and you can proceed as you like.
First of all about the ‘first login’, the easiest way is to set up an extra user meta as a flag for that you could use
add_user_meta()
,get_user_meta()
, andupdate_user_meta()
on the process to read if it’s the 1 login or not and if not update it as they logged in already.So let’s say I’m login in for the 1st time, if yes you
wp_redirect()
me to the page with the form, or the page that I have to deal with changing my password etc ( usually the profile page ).Now for the forms themselves there are various plugins out there so you’ll have to do a search on your own to see exactly what fits your needs.
Make sure though to do all these functions / checks / redirects on a custom plugin that you will built because that’s where they belong, they shouldn’t be bundled in the themes files.
I hope this helps a bit at least with the broad idea of how it could be done.
Forum: Fixing WordPress
In reply to: Soundcloud embed: Disable album artHello,
If there’s not an option already to remove it when creating the embed URL or the embed code that would probably mean that the company want’s it that way and it might break some terms & conditions by removing it. If that’s the case then unfortunately we won’t be able to help you with that here.
Forum: Fixing WordPress
In reply to: Help with old installationI’m confused, you said you can change records in the database.
If you have access to your database then you could change the
siteurl
andhome
under the_options
table to point to the new url and that’s all you would need to access your admin panel. After that you could fix all the permalinks, install a plugin for a full replace etc.So where is the issue exactly ?? ?
Forum: Fixing WordPress
In reply to: Mobile Theme Only Works for Certain URLHello,
Let’s take a breath, step back and see where you are at the moment or what you have done exactly so we might give you a hand because I see forbidden access at the moment on your site.
That means that somebody either changed the file permissions or the
.htaccess
is not letting us view the files.I have not yet understood if you actually ‘moved’ or wanted to ‘move’ your WordPress installation or just make a redirect from one URL to the other.
It’s a totally different topic with different solutions and problems to overcome :). So could you inform me of these:
1] The URL that your WordPress is installed ( or where it should be )
2] The URL that you want to forward to your WordPress.
3] If you want your ‘forwarded’ URL to be your main URL.
4] If you don’t want the above and you actually want to MOVE WordPress into a new folder + URL.It seems that instead of a proper domain alias and a 301 redirect your site was loading through an iframe if I understood correctly. This means that your WordPress was still on the ‘original filesystem’ and if you changed the WordPress urls without a correct alias / 301 redirect it would never work as it can’t read the URL correctly. If I’m making any sense… ( I know it’s somewhat confusing, but that’s what I understand from the comments above ^_^ ).
Hello, have you managed to fix this? Just asking because all of the above mentioned urls redirect me to different sites without issues, so no idea if this is still open or resolved ?? .
Forum: Fixing WordPress
In reply to: How to change/remove top bar on pageIf I understood correctly you just want to hide the top bar menu. Just asking because on my end I see a lot of links there now ( not like your screenshot ) at the moment that are visible on mobile as well.
If that’s the case you can go to
Appearance -> Customize -> Additional CSS
and try the following code@media (max-width: 768px) { .top-bar-navigation { display: none !important; } }
This will hide the top-bar-navigation on any screen below 768px wide.
Forum: Networking WordPress
In reply to: Mutisite images break after upgrade to 4.9.xHello,
I just made an installation of 4.8.3 and enabled multisite just for the sake of testing, but on my installation the
main
site doesn’t use a subfolder for images.The main site is always like
/wp-content/uploads/year/month
and the first subsite goes into/sites/2/
so/sites/1/
isn’t even created here. That being said the update from 4.8.3 to 4.9.4 worked without issues as well.Maybe you had set yourself the upload folder or changed the Upload URL of your main site to /sites/1 ? Theses options would be under
Network Admin -> Sites -> Select the base site -> Settings -> Upload path & Upload URL Path
, and it somehow got reverted to blank resulting to not finding the correct folder ?Make sure to keep full backups before going on with any changes.
Forum: Fixing WordPress
In reply to: Error when I am using PHP 7.2This issue was brought up in Trac Issue 43201 and has been fixed as it seems, but it will be implemented on the next update.
Now to fix it you’ll either have to:
1] Fall back into a previous PHP version to see if it is ok until the update arrives if possible.
2] (This is not usually the way to do things or propose, as tampering with core files can easily break things bu in your case I don’t see another option) Edit the media.php file on line 1206 and change:
from:
if ( ! $src_matched || count( $sources ) < 2 ) {
to:
if ( ! $src_matched || ! is_array( $sources ) || count( $sources ) < 2 ) {
Make sure to keep a backup of your
media.php
in either way to be safe.Forum: Fixing WordPress
In reply to: wp-admin and page not found (404)I see that you are using Cloudflare. Maybe it’s something regarding the service you’re using that flags your browser as inappropriate to enter the website ? That’s why it resets when you clear all your cookies etc maybe.
Try with a different browser or an incognito mode that doesn’t load any extensions in your browser like ad blockers etc and try to view your site again just in case something triggers Cloudfare and it keeps you out.
Forum: Fixing WordPress
In reply to: backup DB and restore to UAT failedI’m not sure how you could have
Error establishing a database connection
from the front-end but a successful login from the back-end + then throwing errors.The idea would be to either not be able to contact the database from either side or get errors from both as well.
That being said maybe there was something wrong going on during the export/import and resulted to a corrupt database. I’d recommend a new clean export ( check that the original database is ok first ) -> import, a re-start of the mysqld so it can read all the databases from scratch and fresh & double check the
wp-config.php
to point on the correct host / database.Since it hasn’t happened to me yet (the half-working half-not part) to be able to give more thorough insights a good read might be https://forums.cpanel.net/threads/innodb-corruption-repair-guide.418722/ to at least identify what is causing the issue here.
Forum: Fixing WordPress
In reply to: WordPress theme overrides a sidebar widgetYou haven’t told us why it looks wrong now and how it should be looking. But in any case the theme should alter the widgets looks to make them look even with the themes mood, so that is correct on the way it works. The only way that you can override the theme is by adding your own CSS styles or classes to your own code.
BUT!
All the styles you see on that widget are coming from
widget.pack.css
that I assume was generated from the site you took the code and not from the theme.So the best way would be to target the CSS classes of the widget for example
.profitly-widget
and change what you want through custom CSS.You can easily add extra CSS via the Customizer ( Appearance -> Customize -> Additional CSS ).
Forum: Fixing WordPress
In reply to: Resize input box of default search widgetHello, I see that you are using News Pro and that seems like a commercial theme. If that’s the case you should ask on their support at https://my.studiopress.com/support/ . Volunteers here don’t have access to commercial products to be able to help and since you’re already their customer I’m sure they’ll be more than happy to help you out on fixing / customizing anything regarding the theme.
Forum: Fixing WordPress
In reply to: Fresh WordPress install, errors in wp_posts tableHello,
I just made a clean install to double check this and everything seems fine with no errors at all. Proof screen: https://cloudup.com/c_nKwT-Kvxo
Server config: Apache/2.4.27, PHP/7.1.12, mysqlnd 5.0.12, phpMyAdmin 4.7.7
pmahomme
is the default theme of phpMyAdmin and it has nothing to do with WordPress.Like the previous replies mention, it seems that your issues are with your phpMyAdmin solely. More info on the error you are getting: https://php.net/manual/en/migration71.other-changes.php .
Maybe you’re running on an older phpMyAdmin version that doesn’t play along well with your current PHP version? If you have access you could try installing the latest phpMyAdmin and check again, else my best advice would be to contact your hosting provider to take a look for you.