Ahmed Ghallab
Forum Replies Created
-
Sorry, it was my fault
Just for documentation, it was not related to Jetpack plugin
I had to edit .htaccess file
to this :# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
instead of this :
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /abdo/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /abdo/index.php [L] </IfModule> # END WordPress
That is wonderful , let me check out this update and get back to you with my feedback .
I was wanted to enable “Mobile Redirection” for all mobile users from all countries of the world except Egypt, because AMP blocked in Egypt
Since this option is not available in the plugin, I found a workable temporary solution .
I’v made a little bet modify in this file /wp-content/plugins/accelerated-mobile-pages/includes/redirect.php under the comment line “// Mobile redirection” in line “253” .
I just add this php code right after “// Mobile redirection” comment :if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } $ipdat = @json_decode(file_get_contents("https://www.geoplugin.net/json.gp?ip=" . $ip)); $country=trim($ipdat->geoplugin_countryName);
The previous code identifies the country of the user and stores the value in a variable ($country) for use in the next step
Then , in the If condition I added another condition to make sure that User’s country in NOT Egypt , Now, Change became like this :if ( ampforwp_get_setting('amp-mobile-redirection') && false == ampforwp_get_setting('ampforwp-development-mode') && $country != 'Egypt') {
So, now when any mobile user from any country except Egypt open page like this https://www.programs-gulf.com/download-computer-games-free/ he will automatically redirect to the AMP version .
It is a temporary solution of course, but it works for meHi @erania-pinnera
Jetpack was already disconnected until yesterday ,and it wasn’t want to connect, I tried yesterday to reconnecting it without any result . Today , and based on your response I tried to reconnect Jetpack , and it connected correctly without any other procedures (without disable any plugins) on the 3 sites .
However, I still got the following error message on my sites :Outbound HTTPS not working Your site could not connect to WordPress.com via HTTPS. This could be due to any number of reasons, including faulty SSL certificates, misconfigured or missing SSL libraries, or network issues. Jetpack will re-test for HTTPS support once a day, but you can click here to try again immediately: Try again ????? ???????? ?? ??? ??? ??? SSL For more help, try our connection debugger or troubleshooting tips.
- This reply was modified 3 years, 7 months ago by Ahmed Ghallab.
Yes I am properly viewing it in my WordPress.com account .
But The issue in the stats on my site dashboard .- This reply was modified 5 years ago by Ahmed Ghallab.
@ahmedkaludi
I sent the informations you asked via mail ([email protected])
Thanks allot- This reply was modified 6 years, 8 months ago by Ahmed Ghallab.
- This reply was modified 6 years, 8 months ago by Ahmed Ghallab.
My site is https://www.lolesc.com/ to take a look of my case
Forum: Fixing WordPress
In reply to: I can't use visual editor after updateSorry but I resolve the problem by the quick resolving way downgrade to 4.2.2
Forum: Fixing WordPress
In reply to: I can't use visual editor after updatealso in my frontpage I get many errors
Failed to load resource: the server responded with a status of 422 (Unknown Error) jquery.js:2 Uncaught Error: Syntax error, unrecognized expression: a[href^=#] https://fonts.googleapis.com/css?family=Roboto%2BSlab%3A400%2C700 Failed to load resource: the server responded with a status of 400 (Bad Request)
Forum: Fixing WordPress
In reply to: I can't use visual editor after updateyes I get this javascript error “Uncaught Error: no such method ‘instance’ for autocomplete widget instance” and I haven’t “Yoast SEO”
I track this problem and I found when deactivate this plugin “DesignThemes Core Features Plugin” it work fine but this plugin is very important to my site .Forum: Plugins
In reply to: [Category Posts Widget] Edit text-size on Category Posts WidgetPlease use the option: “Disable widget CSS”.
This will solve your font-size problem.Not working
I have the same problem my site is WP 4.3
my themes is “jareda”