Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Jacquemin Serge

    (@sergejack)

    That’s weird, because all the CSS and javascript implied should really be scoped to the plugin’s HTMl part only.
    CSS looks like
    #this-page-needs-files TD { ... }

    Javascript uses jquery and goes like
    $('#this-page-needs-files ...

    Do you have any error showing in the browser console?

    Is the main panel really all blank (no editor, etc) or could it be that the content is just far away from where you expect it to be?

    Thread Starter projectmunton

    (@projectmunton)

    Hi ?? thanks for the quick reply …. there are no error messages

    The main body panel shows nothing visually on the screen

    Below is all the code from the body

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <div id="wpbody-content" aria-label="Main content" tabindex="0">
    		<div id="screen-meta" class="metabox-prefs">
    
    			<div id="contextual-help-wrap" class="hidden" tabindex="-1" aria-label="Contextual Help Tab">
    				<div id="contextual-help-back"></div>
    				<div id="contextual-help-columns">
    					<div class="contextual-help-tabs">
    
    <ul>
    							<li id="tab-link-overview" class="active">
    								<a href="#tab-panel-overview">
    									Overview								</a>
    
    							<li id="tab-link-how-to-update">
    								<a href="#tab-panel-how-to-update">
    									How to Update								</a>
    
    </ul>
    					</div>
    
    										<div class="contextual-help-sidebar">
    						<p><strong>For more information:</strong></p><p><a href="https://codex.www.ads-software.com/Dashboard_Updates_Screen">Documentation on Updating WordPress</a></p><p><a href="https://www.ads-software.com/support/">Support Forums</a></p>					</div>
    
    					<div class="contextual-help-tabs-wrap">
    
    							<div id="tab-panel-overview" class="help-tab-content active">
    								<p>On this screen, you can update to the latest version of WordPress, as well as update your themes and plugins from the www.ads-software.com repositories.</p><p>If an update is available, you?ll see a notification appear in the Toolbar and navigation menu. Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.</p>							</div>
    
    							<div id="tab-panel-how-to-update" class="help-tab-content">
    								<p><strong>WordPress</strong> — Updating your WordPress installation is a simple one-click procedure: just <strong>click on the “Update Now” button</strong> when you are notified that a new version is available. In most cases, WordPress will automatically apply maintenance and security updates in the background for you.</p><p><strong>Themes and Plugins</strong> — To update individual themes or plugins from this screen, use the checkboxes to make your selection, then <strong>click on the appropriate “Update” button</strong>. To update all of your themes or plugins at once, you can check the box at the top of the section to select all before clicking the update button.</p>							</div>
    											</div>
    				</div>
    			</div>
    				</div>
    				<div id="screen-meta-links">
    					<div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle">
    			<a href="#contextual-help-wrap">Help</a>
    			</div>
    				</div>
    		</div>

    Plugin Author Jacquemin Serge

    (@sergejack)

    Could you try editing “requirements.php” from the plugin this-page-needs-files directory and comment the second line (add two backslashes in front of it)?

    <?php
    \\defined('BE_MCH_TPNF')||die();

    I’ll investigate what might go wrong about it in the meantime.

    Thread Starter projectmunton

    (@projectmunton)

    Hi ??

    I tried the 2 backslashes and got this error message in the admin

    ‘Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting T_STRING in /usr/local/pem/vhosts/166423/webspace/’

    Plugin Author Jacquemin Serge

    (@sergejack)

    Aw, sorry, I meant (forward) slashes.

    <?php
    //defined('BE_MCH_TPNF')||die();
    Plugin Author Jacquemin Serge

    (@sergejack)

    Maybe you could update your plugin to latest version (1.0.2) and see if it helps?

    Thread Starter projectmunton

    (@projectmunton)

    Hi ?? … I tried the forward slashes and still got the blank page

    Then I updated to the new version and got this error (no blank page though)

    ‘Fatal error: Cannot access self:: when no class scope is active in wp-content/plugins/this-page-needs-files/model/urls.php on line 11’

    Plugin Author Jacquemin Serge

    (@sergejack)

    Could you tell me “all” about your environment?

    OS/PHP version/things you think might be particular/… ?

    Plugin Author Jacquemin Serge

    (@sergejack)

    Can you download and try the 1.0.3 version, I made it to fix this issue*?

    *this issue is not supposed to happen on PHP 5.3+ though.

    Thread Starter projectmunton

    (@projectmunton)

    Hi ??

    Tried 1.0.3 getting another error for line 12

    ‘Fatal error: Cannot access self:: when no class scope is active in /usr/local/pem/vhosts/166423/webspace/httpdocs/Finedon2.org.uk/wp-content/plugins/this-page-needs-files/model/urls.php on line 12’

    I don’t have anything unusual in my setup …. Im on an up to date mac … and have tested locally on MAMP and on a hidden test site in a live environment … both getting the same errors

    Plugin Author Jacquemin Serge

    (@sergejack)

    Ok, well I’m currently clueless because I replaced static/self with direct call to the classes.

    line 12 should be :

    $class::$List = array_flip($instance->getConstants());
    (maybe you could check on that)

    I’ll get back in touch with you if I reach new enlightenment.

    Plugin Author Jacquemin Serge

    (@sergejack)

    I think you use a buggy version of php where getConstants just crashes (this bug happened on some of the 5.3 verions of php).

    I’m serious about this.

    Plugin Author Jacquemin Serge

    (@sergejack)

    Could you try the new version?

    And tell me if you get any error message.

    I’m expecting you to have an error “This version of PHP doesn’t support getConstants”.

    Plugin Author Jacquemin Serge

    (@sergejack)

    Since the issue came from PHP and not my plugin, I’m marking this topic as resolved.

    Thread Starter projectmunton

    (@projectmunton)

    Hi … sorry I haven’t come back sooner … I have been offline.

    I have tested the latest version and it is now working for me ?? Nice work !!
    Will run it for a while and see how I get on

    Many thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Blank page’ is closed to new replies.