Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I am updating code for an installed module. For example, I commented out a few lines of PHP in the php file (modulename.module). But, my updates are not being reflected. I have tried clearing the cache, it did not work.

Do I need to run update.php?

If so, what does it do? And will it effect anything else?

share|improve this question
1  
Hello, and welcome on Drupal Answers. How do you know the changes are not reflected? Is a module you developed? – kiamlaluno Aug 10 '12 at 5:06
Yes, please, show lines which were commented. – kalabro Aug 10 '12 at 6:29
is your custom module enabled on site module page? – svetlio Aug 10 '12 at 9:03
Yes, the module is enabled on the modules page. I know the changes are not being reflected because, the module writes data to a page. It displays the old data and not what I updated. For example, the module writes the line of code: <p>You can directly connect with '. $values->field_user_name['und'][0]['value'] .':</p> I have changed it to: <p>Connect with '. $values->field_user_name['und'][0]['value'] .':</p> But, the new text is not displayed. – Mandeep Aug 10 '12 at 15:01

2 Answers

up vote 1 down vote accepted

Write some giberish into your code. If you don't get an error message, you file is nerver loaded by drupal.

If this is the case, make sure there's no APC cache without stat enabled. This would keep old precompiled byte code in the cache which does not have your changes.

share|improve this answer
>"make sure there's no APC cache without stat enabled" how can i check this? – Mandeep Aug 10 '12 at 15:02

It turns out the website has APC cache enabled. After clearing the cache everything worked fine.

share|improve this answer

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.