Brian Mitchell
asked 6 years ago

Greetings. My DW Wall version is working great however in last few days I can not add new Amazon ads (iframe) and existing ones have gone. Ive contacted Amazon  to see if something has changed there and in the meantime my research has found a suggestion to help wp sites manage iframe by:
just copy and paste in the following code:

// fix to make iframes work
add_filter(‘tiny_mce_before_init’, create_function( ‘$a’,’$a[“extended_valid_elements”] =
“iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]”; return $a;’) );

You’re done! Just hit the Update File button to save the fix, and now iframes should work properly in your WordPress.
 
Would appreciate advice as to whether this should be needed in DW Wall or is there a better fix? Thanks
 

1 Answers
DominicStaff
answered 6 years ago

I have sent and notified to our technical team about this issue, we will check and discuss about it. In this case, you can use this solution to fix your issue.

Brian Mitchell
replied 6 years ago

Thanks Dominic – excellent service, as usual. I have since repurchased another 12 months license and unfortunately can not get update activated on site – had same issue when first purchased template which you fixed. So looks like need your assistance again and wondering if there has been a response from technical team. I just tried to add more iframes code from amazon and the ads are still not appearing.
Thanks again, enjoy the rest of your week.
Cheers

Dominic Staff
replied 6 years ago

Yes, we are planning to check and update the theme, we will release the latest version in the next week

Brian Mitchell
replied 6 years ago

Thank you. Have now stumbled into another problem. My host (at my request to enable another site to work) upgraded to PHP 7.1 and now my DW Wall site gives this error:
“Fatal error: Redefinition of parameter $path in [Ive removed the specific address of my site from here]/wp-content/plugins/tubepress/src/main/php/add-ons/wordpress/classes/tubepress/addons/wordpress/spi/WordPressFunctionWrapper.php on line 213”.
Is this a template issue or back with my host upgrade work? Sorry to be a pain. Cheers

Brian Mitchell
replied 6 years ago

Update – went to my hosting company and they “fixed” the error by removing all (read all) my plugins. Now have no plugins!! Guess I have some work I can now do while I await the latest version to accommodate iframes. Cheers

Dominic Staff
replied 6 years ago

Yes, I have checked the error and see that it’s bug come from the plugin. 🙂 We are trying to release the new version as soon as possible.

Brian Mitchell
replied 6 years ago

Thanks for that. I got my host to reactivate all my plugins. Just another aspect to this. Each page now has a parse error syntax error at the bottom of it – unexpected end of file, expecting elseif (T_ELSE) or endif (T_ENDIF) in (……have taken the domain file name refs out from here)/wp-content/themes/dw-wallpress/comments.php on line 43″.

I reviewed this file and here is the start of it:
<!–

then the bottom few lines are:

–>

I have not been in this file myself until following up on the page error. Is “ a php ref I thought it was used in html and the system ignored everything in between. Line 43 is actually a blank line with the final –> on line 42. Is it “safe to put (T_ENDIF) in as a fix?
Cheers
Thanks

Brian Mitchell
replied 6 years ago

Apologies that this is turning into a saga. Have just found out that getting your host to change you up to php 7.x is only half the story. Apparently individual wp sites have to be compatible with it. Is this the “bug” that is being fixed, a compatibility issue? Ive since learned there is a php 7 compatibility checker as there may be a need to “prep your site for php 7”. Since I just renewed my license and have access to all the wp templates where do they figure in regard to compatibility? Houston – do we have a problem lol. Cheers

Dominic Staff
replied 6 years ago
Powered by DW Question & Answer Pro