• Hello, i’ve just installed the Duotone theme on a self-hosted wordpress 2.9 instance. I tried the preview and it’s giving me this error:

    Warning: Missing argument 1 for is_vertical(), called in […]/wp-content/themes/duotone/functions.php on line 18 and defined in […]/wp-content/themes/duotone/inc/duotonelibrary.php on line 295

    I’m currently using Monotone, which is still working fine.
    Anyone had a similar problem? Hints?

    Thanks
    E.

Viewing 8 replies - 31 through 38 (of 38 total)
  • I am trying to modify an existing theme (neo-sapien) using some ideas from duotone. So I tried selecting duotone and got a lot of the problems mentioned above (plus at first the gd library was not installed in spite of docs saying it comes as default).

    I have fixed
    1) Missing argument 1 for is_vertical(),
    3) Missing argument 1 for get_year_link()
    as suggested by blig above.

    Can’t actually get thumby to work in functions.php.
    The line
    if ( !defined('IS_WPCOM') ) {
    suggests that it all probably works on wordpress.com

    In addition, a couple of Pages I have defined (About & one called Catalogue – they have no images), I get the following errors:

    <b>Warning</b>:  imagesy(): supplied argument is not a valid Image resource in <b>/var/www/wordpress/wp-content/themes/duotone/inc/duotonelibrary.php</b> on line <b>181</b><br />
    <br />
    <b>Warning</b>:  imagesx(): supplied argument is not a valid Image resource in <b>/var/www/wordpress/wp-content/themes/duotone/inc/duotonelibrary.php</b> on line <b>182</b><br />
    <br />
    <b>Warning</b>:  imagecolorat(): supplied argument is not a valid Image resource in <b>/var/www/wordpress/wp-content/themes/duotone/inc/duotonelibrary.php</b> on line <b>193</b><br />
    <br />
    <b>Warning</b>:  imagecolorat(): supplied argument is not a valid Image resource in <b>/var/www/wordpress/wp-content/themes/duotone/inc/duotonelibrary.php</b> on line <b>194</b><br />
    <br />
    <b>Warning</b>:  imagecolorat(): supplied argument is not a valid Image resource in <b>/var/www/wordpress/wp-content/themes/duotone/inc/duotonelibrary.php</b> on line <b>196</b><br />
    <br />
    <b>Warning</b>:  imagecolorat(): supplied argument is not a valid Image resource in <b>/var/www/wordpress/wp-content/themes/duotone/inc/duotonelibrary.php</b> on line <b>197</b><br />
    <br />
    <b>Warning</b>:  imagecolorat(): supplied argument is not a valid Image resource in <b>/var/www/wordpress/wp-content/themes/duotone/inc/duotonelibrary.php</b> on line <b>199</b><br />

    As it all seems to work fine in monotone, and all I want to do is copy the way archive.php works in monotone/duotone (I like it a lot by the way), perhaps I should just stick to the monotone achive.php?

    I would be interested to see if anyone is making any progress with all this.

    Kinobox–your site looks great. How did you get your duotone to autosize the photo? Mine spills over the margins if I try to do this on self-hosted site.

    Any suggestions?

    Just noticed that the _readme.txt file that comes with Monotone contains this text:

    Thumb.php and .htaccess Installation:

    1) Move htaccess.txt and thumb.php to your site’s root folder (the one where xmlrpc.php and the wp-admin folder live).
    2) Rename htaccess.txt to .htaccess OR copy the lines out of .htaccess and append them to your current .htaccess file.
    3) Make a folder with world writable permissions (probably 0777) called “cache” in your site’s root directory. This is so thumb.php can cache the images it generates.
    3) Everything should work.

    The Duotone _readme.txt file just has

    If you need to change where thumbnails and image resizes are cached please edit the duotone/inc/thumb.php file

    Does that help?

    I’m having the same problem with a 404 error on the missing archives. I’ve got postings for each year in the blog as suggested, but still no archives.

    Hello,
    the automatic color doesn’t work on duotone with my website https://www.chiseuil.com. Everything is white. Do you know what is not working?
    thx

    Thanks for this post i fix the is_vertical thing. I share my fix for the year issue.

    Just replave the link in header with this one:

    <?php bloginfo(‘url’); ?>/<?php echo mysql2date(‘Y’, get_lastpostdate(‘blog’)); ?>/

    I got it from the working theme, Monotone ??

    Okay … hacking a bit here:

    For those of you who are having problems seeing images show up, due to having WordPress operating at some place other than the ROOT directory of the URL, here’s where the problems seems to be:

    Look in the file <functions.php> … Look at the line that reads:

    return str_replace(get_bloginfo(‘wpurl’), ”, preg_replace(‘/src=(“|\’)([^\1]+)\?w=[0-9]+(\1)/’,’src=”‘.$thumby.’?image=’.addslashes( “$2”).’&w=’.$width.'”‘,$tag) );

    From my hacking, it appears that the problems is there somewhere.

    If you change the line to simply:
    return $tag;

    Then your images will show.

    I’m having problems with centering and perhaps sizing … but this is a starting place for an ultimate fix.

    good luck all.

    Thank you. This hack solve my problem

    Now it works

    https://www.silviuromano.ro/fotoblog/

    For pictures, I just resize my photos; landscape to 840 for width and the portrait orientation width to 560.

    here’s what mine looks like:

    https://project365.notodoyago.com

Viewing 8 replies - 31 through 38 (of 38 total)
  • The topic ‘Duotone PHP Error on WordPress 2.9’ is closed to new replies.