• Can’t get the plugin to work. Tried putting “if(!class_exists(‘Mobile_Detect’)) : and put this code at LINE 1342 endif;” but no luck. When I activate it without the above mentioned code,it shows only a blank page on front-end and back-end. When I activate it with the above mentioned code it shows an error “undexpected endif”.Can somebody help? Is there a bug or something?

    https://www.ads-software.com/plugins/advanced-advertising-system/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter razvan89

    (@razvan89)

    Well, found the problem. It is within my theme, it uses a the same function and class as the plugin.

    Plugin Author smartdevth

    (@smartdevth)

    Hi,
    Which function caused the problem?

    I may update that function on the next version.

    Best regards,
    Smartdevth

    Thread Starter razvan89

    (@razvan89)

    Hello,
    It was the mobile_detect class. The theme I use has the same exact class. I commented the part where that class is required in the plugin, but that is not a long time fix.

    Plugin Author smartdevth

    (@smartdevth)

    There is no way to prevent the exact same class if the writers don’t check if the class which is an open source and well-known has already included. I hope the next updated version of the theme you are using will check the class before including it.

    Thread Starter razvan89

    (@razvan89)

    Well hope so ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't get it to work’ is closed to new replies.