Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)
  • Thread Starter RMJ

    (@rmj)

    I manually deleted the directory and I downloaded and installed older version 6.10. It installed fine and then I was able to install the newest update without errors.

    I don’t know what was wrong with it. But hopefully it was one time problem.

    I noticed now that the cache directory is not rewritable. Is it not possible automaticly chmod it during installation ? Would save me to connect to server and chmod it manually…

    Thread Starter RMJ

    (@rmj)

    Well, I deleted the plugin once again, re-installed and reseted settings (from wp-config).

    It started to work now but it’s always pain in ass to set up everything again.

    Same problem.

    debug.php is missing from the 4.0 version.

    I already said in the other read but I had the same error and it went away after installing version 3.0 of the plugin.

    I also had version 3.5 of WP (with my custom theme if that matters).

    Installing 3.0 version did not go smoothly trhough. On first try I got PHP error telling that “headers had already been sent” (I already lost the exact error message so can’t copy paste it here). After this I got WP error message on the plugin page that Facebook OG plugin has been disabled because of some error. This caused the whole plugin to disappear from the list, I could not even delete it the normal way. If I tried to install it again, it didn’t let me, I got only the “details” option when I searched the plugin, no “install” option. The solution to fix this was to delete the plugin folder from the server, then go search the plugin again. This time it was again possible to install it and it installed smoothly without error.

    Currently the plugin is fully working on my site.

    I’m running the newest version of WP.

    And I cannot give any line number since it’s not a PHP error. I turned on debug on in WP also but I get nothing useful.

    2.3.1 (dev) version of the plugin is working just fine. After that it breaks.

    ANYWAYS…

    I just installed 3.0 version of the plugin and it solved the problem !

    I still get the error with the dev version. It kills the whole page, all I get is (minus header):

    <body id="error-page">
    	<p>0 is a protected WP option and may not be modified</p>
    </body>

    Possibly related error but I updated my plugin (from dev version) to public 2.4 and I’m getting this error:

    0 is a protected WP option and may not be modified

    The plugin won’t activate anymore. I even tried to delete it and re-install but same thing happens. Instlalling older version works just fine.

    (I did not see the array error anywhere even turned on WP debug info. Just some notices of undefined variables related to this plugin)

    Thread Starter RMJ

    (@rmj)

    Yeah, that should be more than enough. Just having them in the same kind of base tag is simplifying things a lot.

    When I first time styled them I assumed them all being inside DIV and well, things didn’t go well when I did something like:

    .ngfb-buttons > DIV { display: inline-block; }

    It didn’t work (because it didn’t affect the twitter button) but then I got anyways the idea to float them on the left side (instead of having them on one line on top of the post). BTW, I just now noticed why it didn’t work in the first place, I didn’t even start to dig the reason back then (I always assumed the twitter button was also inside div element just like the others). Surely it wouldn’t be big thing to style it without the div but well, it simplifies things. ??

    Thread Starter RMJ

    (@rmj)

    Nevermind, I had commented out wp_footer() in my footer.php

    Now it works fine. it’s up on the main site.

    Thread Starter RMJ

    (@rmj)

    The dev version completely breaks my social buttons. It’s maybe my theme’s fault. Is there some tag I should have in my footer.php because I don’t see the javascript written anywhere.

    Other than that it seems to be workign fine (also the disabling image size check).

    I get the html added into the source but the javascript doesn’t appera anywhere. This is the html part (should be fine):

    <!-- NextGEN Facebook OG Social Buttons BEGIN -->
    <div class="ngfb-content-buttons ngfb-buttons">
    <div class="facebook-button"><span class="fb-root"><fb:like
    		href="https://www.alizeeart.com/agenda/"
    		send="false" layout="button_count" width="400"
    		show_faces="true" font="arial" action="like"
    		colorscheme="light"></fb:like></span></div>
    <div class="gplus-button g-plusone-button"><span class="g-plusone" data-size="medium"
    		data-annotation="bubble"
    		data-href="https://www.alizeeart.com/agenda/"></span></div>
    <a href="https://twitter.com/share"
    		class="twitter-button twitter-share-button"
    		data-url="https://www.alizeeart.com/agenda/"
    		data-count="horizontal"
    		data-size="medium"
    		data-dnt="false">Tweet</a>
    
    			<div class="tumblr-button"><a href="https://www.tumblr.com/share/link?url=http%3A%2F%2Fwww.alizeeart.com%2Fagenda%2F&name=Agenda+2013&description=Agenda+2013+Old+events+has+been+archived+here%3A+++2013+January++2013-01-03++Broadcast+-+Star+Academy+9+Location%3A+20h35+on+NRJ12++Aliz%C3%A9e+will+attend+%28as+a+guest%29+Star+Academy+season+9+show.+She+will+sing+at+least+a+duet+and+possibly+solo+also.+The+broadcast+should+be+live%2C+so+it%27s+filmed+at+the..."
    				title="Share on tumblr"><img border="0"
    				src="https://platform.tumblr.com/v1/share_2.png"></a></div>
    
    </div>
    <!-- NextGEN Facebook OG Social Buttons END -->

    Btw, any chance you could add the twitter bit inside a div ? Now it’s different from the others and causes trouble when writing CSS. At least to me it would make sense them to be inside same kind of tags.

    Thread Starter RMJ

    (@rmj)

    Okey, coo, I will give it a try.

    I noticed the 2.3 and it is actually running on my site (with image size check commneted out). So it’s working quite nicely now, well, after the changes I had to make to my scripts.

    But I will install this dev version now and see how it works.

    Thread Starter RMJ

    (@rmj)

    Yeah, I guess I keep using them. Surely it won’t hurt to use them.

    The only big problem now is that the scripts don’t get run when included, unless written into functions. But I have absolutely no idea what to do about it. So I guess I just have to live with it.

    About those images, Well, at least those 160×90 pictures don’t get rejected by facebook. Maybe checking if one dimension exceeds the limit would be enough?

    Thread Starter RMJ

    (@rmj)

    Happy new year!

    I installed the newest dev version on my test site and well… It doesn’t exactly fix the problem. No notable change to the behaviour: declaring function causes it to be declared multiple times and results in PHP error that breaks the page.

    However, I did try include_once and it fixes the redeclaring functions. So, technically it’s a working work around at the moment. The bug itself still exists of course and if I try to type the function directly on the page (not in incldue file) then it will be problem again (altho checking if the function exists would propably solve it also but that’s a again work around, not a fix).

    Now that I have got my functions running and includes working, I see the next bug…

    This one is strange… firstly, if I have include() inside my file that was inluded with include_once(), then the second include will be run multiple times again, which I don’t understand… of course the problem goes away again if i change also that other include to include_once(). But I have absolutely no idea why the include gets run muliple times when at the same time existing functions in that file doesn’t get declared twice… This might be some PHP strangess so I’m not gonna put my time to look a solution for this… just thought I’d mention it.

    The second bug, equally strange, if not even stranger…

    Now, if I include a file that doesn’t have functions inside it (so basically it’s just a script itself that should get run from the beginning to the end), I get no output at all! In fact, nothing gets run in that script! The whole file content is simply is ignored like a comment…

    So for example, if I include a file that has:

    <?php
    echo "hello from include file!";
    ?>

    Absolutely nothing gets outputted !

    However, I found work around for this also. If I wrap that all in function and call it (from the page, where I first include the script), it gets run just fine. This is a working work around but a bit annoying as I have to change all my scripts and add everything in them inside a function.

    So, with the code above, I have to change it to:

    <?php
    function script_inside_include_file() {
    echo "hello from include file!";
    }
    ?>

    And then call it from the page to get it run. Yes, it works but rather annoying. And on a big site it would be pain in the butt to change all scripts like that (on my case there is thankfully only maybe half a dozen pages I need to fix).

    So, that’s what I know so far…

    You can see the development version in action at
    https://test1.alizeeart.com

    It’s a copy of the original site. Pages I’m currently debuggin are the main page (got include because I grab the “aligram” photo from database), also the agenda page of course as it all started from that (it works correctly btw), and now I have this new headache with Aligram and Wallpapers pages, where I have included a script does render the whole content of the page and as it’s not originally written inside functions (well, surely it has them too, but I mean in general it’s run from the top to bottom), so those pages stopped working as nothing gets run from the script.

    BTW, I commented out part of your code where you check that the image grabbed from url must be over 150 pixels. The agenda page started showing my default image because the small images in agenda page are only 160×90 pixels but I want them to be used and show up on facebook.

    So in my install the plugin now has:

    // if we're picking up an img for src, make sure it's width and height is large enough
    					if ( $src == 'share' || ( $src == 'src'  ) ) {

    insdead of:

    // if we're picking up an img for src, make sure it's width and height is large enough
    					if ( $src == 'share' || ( $src == 'src' && $width >= $size['width'] && $height >= $size['height'] ) ) {

    I think it should be an option to allow smaller images also. Or at least there should be an option to set up the minimum width and height.

    Thread Starter RMJ

    (@rmj)

    The error I get when declaring new function.

    Fatal error: Cannot redeclare new_function() (previously declared in /home/admin/test1/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code:10) in /home/admin/test1/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 10

    I searched a bit about it but couldn’t yet find any solution. I found some earlier talk about such error but no resolution.

    If I comment out this filter line from your source, then the error goes away but obivously also the fix goes away and I get again the php posted in the meta tag.

    $content = apply_filters( 'the_content', $content );

    The redeclaring sounds like the same PHP code would get parsed twice because of applying this filter.

    It’s now too late to dig up any deeper but tomorrow have to see what’s going on.

    Thread Starter RMJ

    (@rmj)

    Okey, I will look into that patch and also check my logs to see more about it.

    I put now the official version on the site so it stays up… I guess I have to put up test wp install to figure this out, can’t really keep killing the site.

    But yeah, at the moment it seems introducing any function in the page kills it. Anything simple works fine, I can

    I tried one more thing, instead using the functions, I put the code from the function where I need the code and everything works fine. So it really is the function (call?) that doesn’t work anymore. I could live with that, but it surely complicates things on some pages when I have to to call the same code many times.

    edit:
    I did not yet have time to check the logs as I came up with another problem. I turned on error messages on my php server but for reason or another it caused one option to disable itself and another site broke… took me a while to figure out what that was.

    And yeah, I have root access so I can check everything. Will do it tonight.

Viewing 15 replies - 1 through 15 (of 25 total)