Hi dPlugins Team.

Good day.

I noticed that if I create a function, some of this will throw an error “Cannot redeclare function_name…”.

Thus I have to add “if( !function_exists(‘vnweb_get_pods_image’))” code to have this working.

I don’t know if it is normal to add to this code every time I create a new function?

Though this function only has 1 instance, I still get this error when navigating to Oxygen>Templates>Filter Template Type.


4 responses to “Do I have to add if function exists to my functions?”

  1. cmsexpertss says:


    Can you please explain how you are calling that function as I don’t see any code block in which that function is being called. Also please explain the process to reproduce the error that how can I get the error.


  2. chuvincelouie says:


    The function mentioned above is for getting images from POST using PODS.

    Here is the full code snippet (Also get it from one of the posts from Oxygen Group)

    > Enable Codeblock
    >Trigger Location: Everywhere

    Issue Occur:
    When filtering Templates of Oxygen (Oxygen>Templates>Select “Template” in the dropdown and click Filter button.

    If you want to test, you may access the website using this info
    Login Link:https://real-estate.vnwebcreations.com/wp-admin/

    Thank you.

    • cmsexpertss says:

      Thank you for providing details. I will need FTP access of your site also in order to debug the issue.


  3. chuvincelouie says:

    Hi dPlugin,
    Good Day.
    Apologies for the late reply as I was on vacation.

    Here are the details:

    Please let me know if you are working on it as I reached out to OxyMade for support also on this website and I allowed them to deactivate some plugins for testing if they need to. I dont know when will they conduct a test but I will also let you know as soon as possible. Thank you.

Leave a Reply

Your email address will not be published.