• I am trying to move a file (the file is a template file.) from plugin folder to theme/twentyten folde. I am using php copy() and register_activation_hook to activate plugin.
    The plugin activates & works in Offline. But failed to copy files while at Online.

    Am I doing something mistake?
    Have any one the answer? Please Help Me.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Well first off, don’t. As soon as you upgrade WordPress you’d lose any changes made in the Twenty Ten directory. better to create a child theme.

    If it worked offline, and not online, it could be a file permissions issue.

    Thread Starter deblopper.sumanta

    (@debloppersumanta)

    May Be it is a file permission issue. So Please tell me how can i change the file permission?
    Another thing is that:::
    copy function takes the source or destination as following —-
    wp-content/themes/twentyten/example.php

    where as if i ant to do this in online I must write as following
    <strong>/</strong>wp-content/themes/twentyten/example.php
    If I write the code as above the copy function does not work.

    Thread Starter deblopper.sumanta

    (@debloppersumanta)

    Is anyone hearing my problem?
    Please Help me.

    Do you understand what the <strong> and </strong> tags are?
    Could that be valid inside a file name?
    Why would you want to be formatting a slash within a file name?

    As for file permissions, take a look at the explanation here:
    https://www.dartmouth.edu/~rc/help/faq/permissions.html
    You’ll see it talks about the chmod command which you can use to set permissions.

    Thread Starter deblopper.sumanta

    (@debloppersumanta)

    the <strong> was just a mistake . I just want to format my writing during post . Ignore this. And Tell me do you have the answer?

    Changing File Permissions

    additionally check your errors logs and see if you can spot anything.

    Additionally I would seek to prove whether or not permissions are the problem. See if you can use the LS mentioned in the tutorial on the dartmouth link to find out what the permissions are.

    If you’re not comfortable with how to do that, I would fear you might be skating on thin ice in attempting to manually move files around within your template folder.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to move a file’ is closed to new replies.