Manuel Weiser
asked 6 years ago

since the latestest WP update (3.9.2) i can’t add galleries to posts.
i get this error in the error console
[Error] Error: Syntax error, unrecognized expression: [gallery type="rectangular" link="file" ids="249,248,247,246,245"]
error (load-scripts.php, line 2)
ob (load-scripts.php, line 2)
xb (load-scripts.php, line 2)
db (load-scripts.php, line 2)
find (load-scripts.php, line 2)
init (load-scripts.php, line 2)
init (load-scripts.php, line 8)
n (load-scripts.php, line 2)
send_to_editor (admin-scripts.js, line 35)
insert (load-scripts.php, line 382)
(anonyme Funktion) (load-scripts.php, line 382)
k (load-scripts.php, line 28)
trigger (load-scripts.php, line 28)
click (load-scripts.php, line 271)
click (load-scripts.php, line 271)
(anonyme Funktion)
dispatch (load-scripts.php, line 3)
handle (load-scripts.php, line 3)

Manuel Weiser
replied 6 years ago

[Error] Error: Syntax error, unrecognized expression: [gallery type="rectangular" link="file" ids="249,248,247,246,245"]

Manuel Weiser
replied 6 years ago

i switched to a other theme and insert a gallery works fine.

2 Answers
Manuel Weiser
answered 6 years ago

Sorry Dominic, but it can’t be true. I tested again and it won’t work. I can’t send you a screenshot because of what?! What happens is nothing, the text field is empty and after klick “add gallery” the text is empty, so i can send you a screenshot of a empty text field…  
 
As i posted above i get a error message:
[Error] Error: Syntax error, unrecognized expression: gallery type=”rectangular” link=”file” ids=”274,247,246,242,220,202″
error (load-scripts.php, line 2)
ob (load-scripts.php, line 2)
xb (load-scripts.php, line 2)
db (load-scripts.php, line 2)
find (load-scripts.php, line 2)
init (load-scripts.php, line 2)
init (load-scripts.php, line 8)
n (load-scripts.php, line 2)
send_to_editor (admin-scripts.js, line 35)
insert (load-scripts.php, line 369)
(anonyme Funktion) (load-scripts.php, line 369)
k (load-scripts.php, line 27)
trigger (load-scripts.php, line 27)
click (load-scripts.php, line 270)
click (load-scripts.php, line 270)
(anonyme Funktion)
dispatch (load-scripts.php, line 3)
handle (load-scripts.php, line 3)
 
As i posted above also, i get this with safari and firefox on mac, i get this with firefox on windows and on different machines. i can copy and paste the gallery tag as text to the textfield an the gallery is created fine, but the automatic insert while creating a gallery won’t work and stops with this error message. And this is only with the timeline theme, with other themes it works fine. so it is definitely a problem with the theme.

Dominic Staff
replied 6 years ago

At the moment, I can not access to Dashboard, you can restore username & password.

Manuel Weiser
replied 6 years ago

i reactivated the account

Wilfred
answered 6 years ago

Hi Manuel,
To resolve this issue please follow my instruction here:
1. Open admin-scripts.js in /wp-content/themes/dw-timeline-pro/assets/js/admin-scripts.js
2. Replace following code – from line 6 to line 66
http://snippi.com/s/ncli1zb 
with:
http://snippi.com/s/qsbm2la
Hope this helps !

Manuel Weiser
replied 6 years ago

Hey Wilfred,

yes it helps, now it works fine again 🙂

thanks a lot

Powered by DW Question & Answer Pro