Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i am trying to install plugin tumblrize and got the error

Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in D:\Projects\Websites\jiewmeng\wp-content\plugins\tumblrize\tumblrize.php on line 636 Call Stack: 0.0005 332520 1. {main}() D:\Projects\Websites\jiewmeng\wp-admin\plugins.php:0 0.2249 3035904 2. plugin_sandbox_scrape() D:\Projects\Websites\jiewmeng\wp-admin\plugins.php:160

on line 636 is

register_activation_hook(__FILE__, 'tumblrize_activate');

i dont see anything wrong with that, just learnt to develop plugins and that line looks ok? there is the function on line 611

function tumblrize_activate () { ...

i am using wordpress 3.0.1 + PHP 5.3.2 btw

share|improve this question
1  
This is a situation where you want to contact the plug-in developer directly. We don't know the Tumblrize plug-in and, as an extension to WordPress this falls along the lines of a solve-my-specific-site-problem (meta.wordpress.stackexchange.com/questions/59/…) question rather than a general WordPress development or administration question. –  EAMann Sep 12 '10 at 4:27
add comment

1 Answer

up vote 1 down vote accepted

Now this one was really really hard to notice bug. I basically brutforced it by cutting/pasting blocks of code.

Long story short - line 462 has wrong code opening tag <? instead of <?php. Which causes some kind of cascading tag mismatch, which seems to go unnoticed by any kind of syntax checker, but wreaks havoc on execution.

share|improve this answer
    
do you know if the plugins trac is checked for that? –  hakre Feb 14 '11 at 19:46
    
@hakre I have no remote idea, I spend little time on trac other than getting links to sources when I want to refer to those. –  Rarst Feb 14 '11 at 19:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.