Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jose

    (@giuse)

    Hi @alinbirau

    Can you please activate this plugin?: https://plugins.svn.www.ads-software.com/specific-content-for-mobile/branches/scfm-debug.zip

    This plugin prints the following information in the JavaScript console:

    PHP version
    ACTIVE THEME
    THEME VERSION
    SPECIFIC CONTENT FOR MOBILE VERSION
    WORDPRESS VERSION
    MULTISITE (yes/no)
    MU-PLUGINS
    DROP-IN PLUGINS
    ACTIVE PLUGINS
    SERVER SOFTWARE (e.g. Apache..)
    MAXIMUM EXECUTION TIME
    MAXIMUM INPUT VARS
    SPECIFIC CONTENT FOR MOBILE OPTIONS

    You can see the information above if you know the debug key and you inspect elements (usually F12 or right-click => inspect elements) and click on “Console”.

    After you activate it on the plugins backend page you will see the debug key next to the deactivation link.

    If for you it’s not a problem that other people may see the information above doing as mentioned above, you can write here the debug key, in another case send it to me at [email protected]. The debug key is unique for your installation.
    After we find and solve the problem you can deactivate the plugin scfm-debug.

    I would need some of that information for the problem-solving

    Thread Starter alinbirau

    (@alinbirau)

    After install it only displays the following:
    JQMIGRATE: Migrate is installed, version 1.4.1
    *** PLUGINS DISABLED BY FREESOUL DEACTIVATE PLUGINS ***

    Sure, my debug key is “7b4f954b”

    Plugin Author Jose

    (@giuse)

    Hi @alinbirau thank you for installing the debugging plugin.
    You can see the information if you add the debug key to the URL as a query argument.

    For example https://geeks.eurogsm.ro/category/articole/?scfm_debug=7b4f954b

    Checking the options of Specific Content For Mobile I see this:

    "Options: Array
    (
        [last_version] => 0.1.5
        [mobile_ids] => Array
            (
                [0] => 23405
            )
    
        [desktop_ids] => Array
            (
                [0] => 23376
            )
    
        [other_meta] => Array
            (
                [metaboxes] => synchronized
                [eos_fdp] => Mobile versions have their own metadata
            )
    
    )

    When you visit the posts archive on mobile, SCFM removes all the posts having the ID included in the array “desktop_ids”.

    In your case the desktop version of https://geeks.eurogsm.ro/top-10-lansari-de-smartphone-uri-si-gadgeturi-din-luna-octombrie/ has the ID 23376, the mobile version of that post has the ID 23405.

    In your case, the post-ID 23405 is not shown on the blog page
    In the code of SCFM there is only one single function where it removes the desktop IDs when you visit the blog on mobile. They are a couple of lines of code.

    if( isset( $opts['desktop_ids'] ) && !empty( $opts['desktop_ids'] ) ){
        $query->set( 'post__not_in',$opts['desktop_ids'] );
    }

    The code above runs only on a mobile. The array $opts[‘desktop_ids’] has only the ID 23376 in your case. And this is right. So, it’s impossible that SCFM is removing the ID 23405.

    I see that the plugin with the slug td-mobile-plugin builds the posts grid.
    I suggest you disable that plugin and see if you still have this issue.

    I also see you have Freesoul Deactivate Plugins. So you could check the blog page in preview mode disabling all plugins but SCFM and check if you still have this issue.
    You can watch this video for more details: https://freesoul-deactivate-plugins.com/freesoul-deactivate-plugins/.
    In your case check every time inspecting elements and clicking on the mobile simulation button.

    I don’t think this issue is caused by SCFM, but never say never. If after your checks you don’t find anything we can investigate deeper.

    • This reply was modified 4 years ago by Jose.
    Plugin Author Jose

    (@giuse)

    Hi @alinbirau
    I see you have a theme very specific for the mobile version. Check its options, especially for the last posts. As I see here https://forum.tagdiv.com/the-mobile-theme/ you can exclude some categories on mobile, be sure the mobile version created with SCFM is not excluded.

    With Freesoul Deactivate Plugins I suggest you check the blog page in preview mode switching to the default WordPress theme and disabling td-mobile-plugin.

    Plugin Author Jose

    (@giuse)

    Hi @alinbirau I will close this thread for inactivity, if you still have problems feel free to open a new thread

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post not available on mobile’ is closed to new replies.